@docusaurus/plugin-content-docs 0.0.0-6065 → 0.0.0-6067

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -61,15 +61,9 @@ async function pluginContentDocs(context, options) {
61
61
  // Note that metadataPath must be the same/in-sync as
62
62
  // the path from createData for each MDX.
63
63
  const aliasedPath = (0, utils_1.aliasedSitePath)(mdxPath, siteDir);
64
- const metadataPath = path_1.default.join(dataDir, `${(0, utils_1.docuHash)(aliasedPath)}.json`);
65
- const metadataContent = contentHelpers.sourceToDoc.get(aliasedPath);
66
- return {
67
- metadataPath,
68
- metadataContent,
69
- };
64
+ return path_1.default.join(dataDir, `${(0, utils_1.docuHash)(aliasedPath)}.json`);
70
65
  },
71
- // Assets allow to convert some relative images paths to
72
- // require(...) calls
66
+ // createAssets converts relative paths to require() calls
73
67
  createAssets: ({ frontMatter }) => ({
74
68
  image: frontMatter.image,
75
69
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-docs",
3
- "version": "0.0.0-6065",
3
+ "version": "0.0.0-6067",
4
4
  "description": "Docs plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "sideEffects": false,
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
- "@docusaurus/core": "0.0.0-6065",
39
- "@docusaurus/logger": "0.0.0-6065",
40
- "@docusaurus/mdx-loader": "0.0.0-6065",
41
- "@docusaurus/module-type-aliases": "0.0.0-6065",
42
- "@docusaurus/theme-common": "0.0.0-6065",
43
- "@docusaurus/types": "0.0.0-6065",
44
- "@docusaurus/utils": "0.0.0-6065",
45
- "@docusaurus/utils-common": "0.0.0-6065",
46
- "@docusaurus/utils-validation": "0.0.0-6065",
38
+ "@docusaurus/core": "0.0.0-6067",
39
+ "@docusaurus/logger": "0.0.0-6067",
40
+ "@docusaurus/mdx-loader": "0.0.0-6067",
41
+ "@docusaurus/module-type-aliases": "0.0.0-6067",
42
+ "@docusaurus/theme-common": "0.0.0-6067",
43
+ "@docusaurus/types": "0.0.0-6067",
44
+ "@docusaurus/utils": "0.0.0-6067",
45
+ "@docusaurus/utils-common": "0.0.0-6067",
46
+ "@docusaurus/utils-validation": "0.0.0-6067",
47
47
  "@types/react-router-config": "^5.0.7",
48
48
  "combine-promises": "^1.1.0",
49
49
  "fs-extra": "^11.1.1",
@@ -67,5 +67,5 @@
67
67
  "engines": {
68
68
  "node": ">=18.0"
69
69
  },
70
- "gitHead": "6da713a524315a36515fc3e998ff1551bfa054d2"
70
+ "gitHead": "856911a5474e8e907f83438abe5c42d4793e06cb"
71
71
  }
package/src/index.ts CHANGED
@@ -123,18 +123,9 @@ export default async function pluginContentDocs(
123
123
  // Note that metadataPath must be the same/in-sync as
124
124
  // the path from createData for each MDX.
125
125
  const aliasedPath = aliasedSitePath(mdxPath, siteDir);
126
- const metadataPath = path.join(
127
- dataDir,
128
- `${docuHash(aliasedPath)}.json`,
129
- );
130
- const metadataContent = contentHelpers.sourceToDoc.get(aliasedPath);
131
- return {
132
- metadataPath,
133
- metadataContent,
134
- };
126
+ return path.join(dataDir, `${docuHash(aliasedPath)}.json`);
135
127
  },
136
- // Assets allow to convert some relative images paths to
137
- // require(...) calls
128
+ // createAssets converts relative paths to require() calls
138
129
  createAssets: ({frontMatter}: {frontMatter: DocFrontMatter}) => ({
139
130
  image: frontMatter.image,
140
131
  }),