@docusaurus/plugin-content-pages 3.9.2-canary-6436 → 3.9.2-canary-6439
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/content.js +2 -1
- package/package.json +7 -7
- package/src/content.ts +2 -0
package/lib/content.js
CHANGED
|
@@ -49,6 +49,7 @@ async function loadPagesContent(params) {
|
|
|
49
49
|
async function processPageSourceFile(relativeSource, params) {
|
|
50
50
|
const { context, options, contentPaths } = params;
|
|
51
51
|
const { siteConfig, baseUrl, siteDir, i18n } = context;
|
|
52
|
+
const vcs = siteConfig.future.experimental_vcs;
|
|
52
53
|
const { editUrl } = options;
|
|
53
54
|
// Lookup in localized folder in priority
|
|
54
55
|
const contentPath = await (0, utils_1.getFolderContainingFile)((0, utils_1.getContentPathList)(contentPaths), relativeSource);
|
|
@@ -101,7 +102,7 @@ async function processPageSourceFile(relativeSource, params) {
|
|
|
101
102
|
}
|
|
102
103
|
return undefined;
|
|
103
104
|
}
|
|
104
|
-
const lastUpdatedData = await (0, utils_1.readLastUpdateData)(source, options, frontMatter.last_update);
|
|
105
|
+
const lastUpdatedData = await (0, utils_1.readLastUpdateData)(source, options, frontMatter.last_update, vcs);
|
|
105
106
|
if ((0, utils_1.isDraft)({ frontMatter })) {
|
|
106
107
|
return undefined;
|
|
107
108
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-content-pages",
|
|
3
|
-
"version": "3.9.2-canary-
|
|
3
|
+
"version": "3.9.2-canary-6439",
|
|
4
4
|
"description": "Pages plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-content-pages.d.ts",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/core": "3.9.2-canary-
|
|
22
|
-
"@docusaurus/mdx-loader": "3.9.2-canary-
|
|
23
|
-
"@docusaurus/types": "3.9.2-canary-
|
|
24
|
-
"@docusaurus/utils": "3.9.2-canary-
|
|
25
|
-
"@docusaurus/utils-validation": "3.9.2-canary-
|
|
21
|
+
"@docusaurus/core": "3.9.2-canary-6439",
|
|
22
|
+
"@docusaurus/mdx-loader": "3.9.2-canary-6439",
|
|
23
|
+
"@docusaurus/types": "3.9.2-canary-6439",
|
|
24
|
+
"@docusaurus/utils": "3.9.2-canary-6439",
|
|
25
|
+
"@docusaurus/utils-validation": "3.9.2-canary-6439",
|
|
26
26
|
"fs-extra": "^11.1.1",
|
|
27
27
|
"tslib": "^2.6.0",
|
|
28
28
|
"webpack": "^5.88.1"
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": ">=20.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "67795b9b8e2c6d94284ae736bb0d974a2cf2000b"
|
|
38
38
|
}
|
package/src/content.ts
CHANGED
|
@@ -98,6 +98,7 @@ async function processPageSourceFile(
|
|
|
98
98
|
): Promise<Metadata | undefined> {
|
|
99
99
|
const {context, options, contentPaths} = params;
|
|
100
100
|
const {siteConfig, baseUrl, siteDir, i18n} = context;
|
|
101
|
+
const vcs = siteConfig.future.experimental_vcs;
|
|
101
102
|
const {editUrl} = options;
|
|
102
103
|
|
|
103
104
|
// Lookup in localized folder in priority
|
|
@@ -180,6 +181,7 @@ async function processPageSourceFile(
|
|
|
180
181
|
source,
|
|
181
182
|
options,
|
|
182
183
|
frontMatter.last_update,
|
|
184
|
+
vcs,
|
|
183
185
|
);
|
|
184
186
|
|
|
185
187
|
if (isDraft({frontMatter})) {
|