@docusaurus/plugin-content-docs 0.0.0-5982 → 0.0.0-5985
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 +2 -1
- package/lib/options.js +2 -0
- package/package.json +10 -10
- package/src/index.ts +2 -0
- package/src/options.ts +3 -0
package/lib/index.js
CHANGED
|
@@ -191,7 +191,7 @@ async function pluginContentDocs(context, options) {
|
|
|
191
191
|
});
|
|
192
192
|
},
|
|
193
193
|
configureWebpack(_config, isServer, utils, content) {
|
|
194
|
-
const { rehypePlugins, remarkPlugins, beforeDefaultRehypePlugins, beforeDefaultRemarkPlugins, } = options;
|
|
194
|
+
const { rehypePlugins, remarkPlugins, recmaPlugins, beforeDefaultRehypePlugins, beforeDefaultRemarkPlugins, } = options;
|
|
195
195
|
const contentDirs = versionsMetadata
|
|
196
196
|
.flatMap(utils_1.getContentPathList)
|
|
197
197
|
// Trailing slash is important, see https://github.com/facebook/docusaurus/pull/3970
|
|
@@ -201,6 +201,7 @@ async function pluginContentDocs(context, options) {
|
|
|
201
201
|
admonitions: options.admonitions,
|
|
202
202
|
remarkPlugins,
|
|
203
203
|
rehypePlugins,
|
|
204
|
+
recmaPlugins,
|
|
204
205
|
beforeDefaultRehypePlugins,
|
|
205
206
|
beforeDefaultRemarkPlugins,
|
|
206
207
|
staticDirs: siteConfig.staticDirectories.map((dir) => path_1.default.resolve(siteDir, dir)),
|
package/lib/options.js
CHANGED
|
@@ -31,6 +31,7 @@ exports.DEFAULT_OPTIONS = {
|
|
|
31
31
|
docCategoryGeneratedIndexComponent: '@theme/DocCategoryGeneratedIndexPage',
|
|
32
32
|
remarkPlugins: [],
|
|
33
33
|
rehypePlugins: [],
|
|
34
|
+
recmaPlugins: [],
|
|
34
35
|
beforeDefaultRemarkPlugins: [],
|
|
35
36
|
beforeDefaultRehypePlugins: [],
|
|
36
37
|
showLastUpdateTime: false,
|
|
@@ -92,6 +93,7 @@ const OptionsSchema = utils_validation_1.Joi.object({
|
|
|
92
93
|
docCategoryGeneratedIndexComponent: utils_validation_1.Joi.string().default(exports.DEFAULT_OPTIONS.docCategoryGeneratedIndexComponent),
|
|
93
94
|
remarkPlugins: utils_validation_1.RemarkPluginsSchema.default(exports.DEFAULT_OPTIONS.remarkPlugins),
|
|
94
95
|
rehypePlugins: utils_validation_1.RehypePluginsSchema.default(exports.DEFAULT_OPTIONS.rehypePlugins),
|
|
96
|
+
recmaPlugins: utils_validation_1.RecmaPluginsSchema.default(exports.DEFAULT_OPTIONS.recmaPlugins),
|
|
95
97
|
beforeDefaultRemarkPlugins: utils_validation_1.RemarkPluginsSchema.default(exports.DEFAULT_OPTIONS.beforeDefaultRemarkPlugins),
|
|
96
98
|
beforeDefaultRehypePlugins: utils_validation_1.RehypePluginsSchema.default(exports.DEFAULT_OPTIONS.beforeDefaultRehypePlugins),
|
|
97
99
|
admonitions: utils_validation_1.AdmonitionsSchema.default(exports.DEFAULT_OPTIONS.admonitions),
|
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-5985",
|
|
4
4
|
"description": "Docs plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -35,14 +35,14 @@
|
|
|
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-common": "0.0.0-
|
|
45
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
38
|
+
"@docusaurus/core": "0.0.0-5985",
|
|
39
|
+
"@docusaurus/logger": "0.0.0-5985",
|
|
40
|
+
"@docusaurus/mdx-loader": "0.0.0-5985",
|
|
41
|
+
"@docusaurus/module-type-aliases": "0.0.0-5985",
|
|
42
|
+
"@docusaurus/types": "0.0.0-5985",
|
|
43
|
+
"@docusaurus/utils": "0.0.0-5985",
|
|
44
|
+
"@docusaurus/utils-common": "0.0.0-5985",
|
|
45
|
+
"@docusaurus/utils-validation": "0.0.0-5985",
|
|
46
46
|
"@types/react-router-config": "^5.0.7",
|
|
47
47
|
"combine-promises": "^1.1.0",
|
|
48
48
|
"fs-extra": "^11.1.1",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"engines": {
|
|
67
67
|
"node": ">=18.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "01e2896b49cfb78bed86b3c8854728377792a90a"
|
|
70
70
|
}
|
package/src/index.ts
CHANGED
|
@@ -293,6 +293,7 @@ export default async function pluginContentDocs(
|
|
|
293
293
|
const {
|
|
294
294
|
rehypePlugins,
|
|
295
295
|
remarkPlugins,
|
|
296
|
+
recmaPlugins,
|
|
296
297
|
beforeDefaultRehypePlugins,
|
|
297
298
|
beforeDefaultRemarkPlugins,
|
|
298
299
|
} = options;
|
|
@@ -307,6 +308,7 @@ export default async function pluginContentDocs(
|
|
|
307
308
|
admonitions: options.admonitions,
|
|
308
309
|
remarkPlugins,
|
|
309
310
|
rehypePlugins,
|
|
311
|
+
recmaPlugins,
|
|
310
312
|
beforeDefaultRehypePlugins,
|
|
311
313
|
beforeDefaultRemarkPlugins,
|
|
312
314
|
staticDirs: siteConfig.staticDirectories.map((dir) =>
|
package/src/options.ts
CHANGED
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
Joi,
|
|
11
11
|
RemarkPluginsSchema,
|
|
12
12
|
RehypePluginsSchema,
|
|
13
|
+
RecmaPluginsSchema,
|
|
13
14
|
AdmonitionsSchema,
|
|
14
15
|
RouteBasePathSchema,
|
|
15
16
|
URISchema,
|
|
@@ -40,6 +41,7 @@ export const DEFAULT_OPTIONS: Omit<PluginOptions, 'id' | 'sidebarPath'> = {
|
|
|
40
41
|
docCategoryGeneratedIndexComponent: '@theme/DocCategoryGeneratedIndexPage',
|
|
41
42
|
remarkPlugins: [],
|
|
42
43
|
rehypePlugins: [],
|
|
44
|
+
recmaPlugins: [],
|
|
43
45
|
beforeDefaultRemarkPlugins: [],
|
|
44
46
|
beforeDefaultRehypePlugins: [],
|
|
45
47
|
showLastUpdateTime: false,
|
|
@@ -123,6 +125,7 @@ const OptionsSchema = Joi.object<PluginOptions>({
|
|
|
123
125
|
),
|
|
124
126
|
remarkPlugins: RemarkPluginsSchema.default(DEFAULT_OPTIONS.remarkPlugins),
|
|
125
127
|
rehypePlugins: RehypePluginsSchema.default(DEFAULT_OPTIONS.rehypePlugins),
|
|
128
|
+
recmaPlugins: RecmaPluginsSchema.default(DEFAULT_OPTIONS.recmaPlugins),
|
|
126
129
|
beforeDefaultRemarkPlugins: RemarkPluginsSchema.default(
|
|
127
130
|
DEFAULT_OPTIONS.beforeDefaultRemarkPlugins,
|
|
128
131
|
),
|