Skip to content

Commit

Permalink
docs: update remark-frontmatter and remark-mdx-frontmatter dependenci…
Browse files Browse the repository at this point in the history
…es (#1534)
  • Loading branch information
scurker authored Jun 21, 2024
1 parent 95a6071 commit 6171819
Show file tree
Hide file tree
Showing 3 changed files with 374 additions and 64 deletions.
6 changes: 6 additions & 0 deletions docs/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const collections: Collections = (require as any)
default: Component,
title,
path,
frontmatter,
...props
} = require(`./pages/${name}.mdx`);
const component = {
Expand All @@ -46,6 +47,7 @@ const collections: Collections = (require as any)
Component,
path: path || `/${name}`,
filepath,
...frontmatter,
...props
};
collections.pages.push(component);
Expand All @@ -55,6 +57,7 @@ const collections: Collections = (require as any)
default: Component,
title,
path,
frontmatter,
...props
} = require(`./pages/components/${name}.mdx`);
const component = {
Expand All @@ -63,6 +66,7 @@ const collections: Collections = (require as any)
Component,
path: path || `/components/${name}`,
filepath,
...frontmatter,
...props
};
collections.components.push(component);
Expand All @@ -72,6 +76,7 @@ const collections: Collections = (require as any)
default: Component,
title,
path,
frontmatter,
...props
} = require(`./pages/foundations/${name}.mdx`);
const component = {
Expand All @@ -80,6 +85,7 @@ const collections: Collections = (require as any)
Component,
path: path || `/foundations/${name}`,
filepath,
...frontmatter,
...props
};
collections.foundations.push(component);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@
"react-dom": "^16.13.1",
"react-helmet": "^5.2.1",
"react-router-dom": "^5.3.0",
"remark-frontmatter": "^4.0.1",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^3.0.1",
"remark-mdx-frontmatter": "^2.1.1",
"remark-mdx-frontmatter": "^4.0.0",
"remark-mdx-toc": "^0.3.1",
"rimraf": "^4.3.1",
"slugify": "^1.6.5",
Expand Down
Loading

0 comments on commit 6171819

Please sign in to comment.