@docusaurus/plugin-content-docs 3.9.2-canary-6437 → 3.9.2-canary-6443

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.
Files changed (3) hide show
  1. package/lib/docs.js +2 -2
  2. package/package.json +11 -11
  3. package/src/docs.ts +2 -0
package/lib/docs.js CHANGED
@@ -38,7 +38,7 @@ async function readVersionDocs(versionMetadata, options) {
38
38
  }
39
39
  async function doProcessDocMetadata({ docFile, versionMetadata, context, options, env, tagsFile, }) {
40
40
  const { source, content, contentPath, filePath } = docFile;
41
- const { siteDir, siteConfig: { markdown: { parseFrontMatter }, }, } = context;
41
+ const { siteDir, siteConfig: { markdown: { parseFrontMatter }, future: { experimental_vcs: vcs }, }, } = context;
42
42
  const { frontMatter: unsafeFrontMatter, contentTitle, excerpt, } = await (0, utils_1.parseMarkdownFile)({
43
43
  filePath,
44
44
  fileContent: content,
@@ -50,7 +50,7 @@ async function doProcessDocMetadata({ docFile, versionMetadata, context, options
50
50
  // (01-MyFolder/01-MyDoc.md => MyFolder/MyDoc)
51
51
  // but allow to disable this behavior with front matter
52
52
  parse_number_prefixes: parseNumberPrefixes = true, last_update: lastUpdateFrontMatter, } = frontMatter;
53
- const lastUpdate = await (0, utils_1.readLastUpdateData)(filePath, options, lastUpdateFrontMatter);
53
+ const lastUpdate = await (0, utils_1.readLastUpdateData)(filePath, options, lastUpdateFrontMatter, vcs);
54
54
  // E.g. api/plugins/myDoc -> myDoc; myDoc -> myDoc
55
55
  const sourceFileNameWithoutExtension = path_1.default.basename(source, path_1.default.extname(source));
56
56
  // E.g. api/plugins/myDoc -> api/plugins; myDoc -> .
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-docs",
3
- "version": "3.9.2-canary-6437",
3
+ "version": "3.9.2-canary-6443",
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": "3.9.2-canary-6437",
39
- "@docusaurus/logger": "3.9.2-canary-6437",
40
- "@docusaurus/mdx-loader": "3.9.2-canary-6437",
41
- "@docusaurus/module-type-aliases": "3.9.2-canary-6437",
42
- "@docusaurus/theme-common": "3.9.2-canary-6437",
43
- "@docusaurus/types": "3.9.2-canary-6437",
44
- "@docusaurus/utils": "3.9.2-canary-6437",
45
- "@docusaurus/utils-common": "3.9.2-canary-6437",
46
- "@docusaurus/utils-validation": "3.9.2-canary-6437",
38
+ "@docusaurus/core": "3.9.2-canary-6443",
39
+ "@docusaurus/logger": "3.9.2-canary-6443",
40
+ "@docusaurus/mdx-loader": "3.9.2-canary-6443",
41
+ "@docusaurus/module-type-aliases": "3.9.2-canary-6443",
42
+ "@docusaurus/theme-common": "3.9.2-canary-6443",
43
+ "@docusaurus/types": "3.9.2-canary-6443",
44
+ "@docusaurus/utils": "3.9.2-canary-6443",
45
+ "@docusaurus/utils-common": "3.9.2-canary-6443",
46
+ "@docusaurus/utils-validation": "3.9.2-canary-6443",
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": ">=20.0"
69
69
  },
70
- "gitHead": "c36f3ac2e06fc332b02fc2feaae5011d1a51ac87"
70
+ "gitHead": "a25dde30cfb44b2e621d62c4a58e371e3d9c96bf"
71
71
  }
package/src/docs.ts CHANGED
@@ -97,6 +97,7 @@ async function doProcessDocMetadata({
97
97
  siteDir,
98
98
  siteConfig: {
99
99
  markdown: {parseFrontMatter},
100
+ future: {experimental_vcs: vcs},
100
101
  },
101
102
  } = context;
102
103
 
@@ -125,6 +126,7 @@ async function doProcessDocMetadata({
125
126
  filePath,
126
127
  options,
127
128
  lastUpdateFrontMatter,
129
+ vcs,
128
130
  );
129
131
 
130
132
  // E.g. api/plugins/myDoc -> myDoc; myDoc -> myDoc