@docusaurus/plugin-content-docs 2.2.0 → 2.3.0

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
@@ -214,12 +214,13 @@ async function pluginContentDocs(context, options) {
214
214
  },
215
215
  };
216
216
  function createMDXLoaderRule() {
217
- const contentDirs = versionsMetadata.flatMap(utils_1.getContentPathList);
217
+ const contentDirs = versionsMetadata
218
+ .flatMap(utils_1.getContentPathList)
219
+ // Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
220
+ .map(utils_1.addTrailingPathSeparator);
218
221
  return {
219
222
  test: /\.mdx?$/i,
220
- include: contentDirs
221
- // Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
222
- .map(utils_1.addTrailingPathSeparator),
223
+ include: contentDirs,
223
224
  use: [
224
225
  getJSLoader({ isServer }),
225
226
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-docs",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
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": "2.2.0",
39
- "@docusaurus/logger": "2.2.0",
40
- "@docusaurus/mdx-loader": "2.2.0",
41
- "@docusaurus/module-type-aliases": "2.2.0",
42
- "@docusaurus/types": "2.2.0",
43
- "@docusaurus/utils": "2.2.0",
44
- "@docusaurus/utils-validation": "2.2.0",
38
+ "@docusaurus/core": "2.3.0",
39
+ "@docusaurus/logger": "2.3.0",
40
+ "@docusaurus/mdx-loader": "2.3.0",
41
+ "@docusaurus/module-type-aliases": "2.3.0",
42
+ "@docusaurus/types": "2.3.0",
43
+ "@docusaurus/utils": "2.3.0",
44
+ "@docusaurus/utils-validation": "2.3.0",
45
45
  "@types/react-router-config": "^5.0.6",
46
46
  "combine-promises": "^1.1.0",
47
47
  "fs-extra": "^10.1.0",
@@ -56,7 +56,6 @@
56
56
  "@types/js-yaml": "^4.0.5",
57
57
  "@types/picomatch": "^2.3.0",
58
58
  "commander": "^5.1.0",
59
- "escape-string-regexp": "^4.0.0",
60
59
  "picomatch": "^2.3.1",
61
60
  "shelljs": "^0.8.5"
62
61
  },
@@ -67,5 +66,5 @@
67
66
  "engines": {
68
67
  "node": ">=16.14"
69
68
  },
70
- "gitHead": "a308fb7c81832cca354192fe2984f52749441249"
69
+ "gitHead": "ad477781bdca6a11fa9c6daef5048bdcec0ee37e"
71
70
  }
package/src/index.ts CHANGED
@@ -336,12 +336,13 @@ export default async function pluginContentDocs(
336
336
  };
337
337
 
338
338
  function createMDXLoaderRule(): RuleSetRule {
339
- const contentDirs = versionsMetadata.flatMap(getContentPathList);
339
+ const contentDirs = versionsMetadata
340
+ .flatMap(getContentPathList)
341
+ // Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
342
+ .map(addTrailingPathSeparator);
340
343
  return {
341
344
  test: /\.mdx?$/i,
342
- include: contentDirs
343
- // Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
344
- .map(addTrailingPathSeparator),
345
+ include: contentDirs,
345
346
  use: [
346
347
  getJSLoader({isServer}),
347
348
  {