@docusaurus/plugin-content-pages 0.0.0-4685 → 0.0.0-4693
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 -2
- package/package.json +7 -7
- package/src/index.ts +2 -2
package/lib/index.js
CHANGED
|
@@ -22,7 +22,7 @@ const isMarkdownSource = (source) => source.endsWith('.md') || source.endsWith('
|
|
|
22
22
|
async function pluginContentPages(context, options) {
|
|
23
23
|
if (options.admonitions) {
|
|
24
24
|
options.remarkPlugins = options.remarkPlugins.concat([
|
|
25
|
-
[remark_admonitions_1.default, options.admonitions
|
|
25
|
+
[remark_admonitions_1.default, options.admonitions],
|
|
26
26
|
]);
|
|
27
27
|
}
|
|
28
28
|
const { siteConfig, siteDir, generatedFilesDir, i18n: { currentLocale }, } = context;
|
|
@@ -40,7 +40,7 @@ async function pluginContentPages(context, options) {
|
|
|
40
40
|
return {
|
|
41
41
|
name: 'docusaurus-plugin-content-pages',
|
|
42
42
|
getPathsToWatch() {
|
|
43
|
-
const { include
|
|
43
|
+
const { include } = options;
|
|
44
44
|
return getContentPathList(contentPaths).flatMap((contentPath) => include.map((pattern) => `${contentPath}/${pattern}`));
|
|
45
45
|
},
|
|
46
46
|
async loadContent() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-content-pages",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4693",
|
|
4
4
|
"description": "Pages plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-content-pages.d.ts",
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/core": "0.0.0-
|
|
22
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
23
|
-
"@docusaurus/utils": "0.0.0-
|
|
24
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
21
|
+
"@docusaurus/core": "0.0.0-4693",
|
|
22
|
+
"@docusaurus/mdx-loader": "0.0.0-4693",
|
|
23
|
+
"@docusaurus/utils": "0.0.0-4693",
|
|
24
|
+
"@docusaurus/utils-validation": "0.0.0-4693",
|
|
25
25
|
"fs-extra": "^10.0.1",
|
|
26
26
|
"remark-admonitions": "^1.2.1",
|
|
27
27
|
"tslib": "^2.3.1",
|
|
28
28
|
"webpack": "^5.69.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@docusaurus/types": "0.0.0-
|
|
31
|
+
"@docusaurus/types": "0.0.0-4693"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^16.8.4 || ^17.0.0",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"engines": {
|
|
38
38
|
"node": ">=14"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "f5ed3eaf62d30a211da3b0aaf76dfc6deafba859"
|
|
41
41
|
}
|
package/src/index.ts
CHANGED
|
@@ -47,7 +47,7 @@ export default async function pluginContentPages(
|
|
|
47
47
|
): Promise<Plugin<LoadedContent | null>> {
|
|
48
48
|
if (options.admonitions) {
|
|
49
49
|
options.remarkPlugins = options.remarkPlugins.concat([
|
|
50
|
-
[admonitions, options.admonitions
|
|
50
|
+
[admonitions, options.admonitions],
|
|
51
51
|
]);
|
|
52
52
|
}
|
|
53
53
|
const {
|
|
@@ -77,7 +77,7 @@ export default async function pluginContentPages(
|
|
|
77
77
|
name: 'docusaurus-plugin-content-pages',
|
|
78
78
|
|
|
79
79
|
getPathsToWatch() {
|
|
80
|
-
const {include
|
|
80
|
+
const {include} = options;
|
|
81
81
|
return getContentPathList(contentPaths).flatMap((contentPath) =>
|
|
82
82
|
include.map((pattern) => `${contentPath}/${pattern}`),
|
|
83
83
|
);
|