@docusaurus/plugin-content-docs 0.0.0-5382 → 0.0.0-5388
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 +5 -4
- package/package.json +9 -9
- package/src/index.ts +5 -4
package/lib/index.js
CHANGED
|
@@ -161,12 +161,13 @@ async function pluginContentDocs(context, options) {
|
|
|
161
161
|
},
|
|
162
162
|
};
|
|
163
163
|
function createMDXLoaderRule() {
|
|
164
|
-
const contentDirs = versionsMetadata
|
|
164
|
+
const contentDirs = versionsMetadata
|
|
165
|
+
.flatMap(utils_1.getContentPathList)
|
|
166
|
+
// Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
|
|
167
|
+
.map(utils_1.addTrailingPathSeparator);
|
|
165
168
|
return {
|
|
166
169
|
test: /\.mdx?$/i,
|
|
167
|
-
include: contentDirs
|
|
168
|
-
// Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
|
|
169
|
-
.map(utils_1.addTrailingPathSeparator),
|
|
170
|
+
include: contentDirs,
|
|
170
171
|
use: [
|
|
171
172
|
getJSLoader({ isServer }),
|
|
172
173
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-content-docs",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5388",
|
|
4
4
|
"description": "Docs plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
},
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@docusaurus/core": "0.0.0-
|
|
39
|
-
"@docusaurus/logger": "0.0.0-
|
|
40
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
41
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
42
|
-
"@docusaurus/types": "0.0.0-
|
|
43
|
-
"@docusaurus/utils": "0.0.0-
|
|
44
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
38
|
+
"@docusaurus/core": "0.0.0-5388",
|
|
39
|
+
"@docusaurus/logger": "0.0.0-5388",
|
|
40
|
+
"@docusaurus/mdx-loader": "0.0.0-5388",
|
|
41
|
+
"@docusaurus/module-type-aliases": "0.0.0-5388",
|
|
42
|
+
"@docusaurus/types": "0.0.0-5388",
|
|
43
|
+
"@docusaurus/utils": "0.0.0-5388",
|
|
44
|
+
"@docusaurus/utils-validation": "0.0.0-5388",
|
|
45
45
|
"@types/react-router-config": "^5.0.6",
|
|
46
46
|
"combine-promises": "^1.1.0",
|
|
47
47
|
"fs-extra": "^10.1.0",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": ">=16.14"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "5724aa75bd5befedc156a3936cd1c7235f690198"
|
|
71
71
|
}
|
package/src/index.ts
CHANGED
|
@@ -255,12 +255,13 @@ export default async function pluginContentDocs(
|
|
|
255
255
|
};
|
|
256
256
|
|
|
257
257
|
function createMDXLoaderRule(): RuleSetRule {
|
|
258
|
-
const contentDirs = versionsMetadata
|
|
258
|
+
const contentDirs = versionsMetadata
|
|
259
|
+
.flatMap(getContentPathList)
|
|
260
|
+
// Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
|
|
261
|
+
.map(addTrailingPathSeparator);
|
|
259
262
|
return {
|
|
260
263
|
test: /\.mdx?$/i,
|
|
261
|
-
include: contentDirs
|
|
262
|
-
// Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
|
|
263
|
-
.map(addTrailingPathSeparator),
|
|
264
|
+
include: contentDirs,
|
|
264
265
|
use: [
|
|
265
266
|
getJSLoader({isServer}),
|
|
266
267
|
{
|