@docusaurus/plugin-sitemap 0.0.0-5990 → 0.0.0-5993
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.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +8 -8
- package/src/index.ts +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { PluginOptions, Options } from './options';
|
|
8
8
|
import type { LoadContext, Plugin } from '@docusaurus/types';
|
|
9
|
-
export default function pluginSitemap(context: LoadContext, options: PluginOptions): Plugin<void
|
|
9
|
+
export default function pluginSitemap(context: LoadContext, options: PluginOptions): Plugin<void> | null;
|
|
10
10
|
export { validateOptions } from './options';
|
|
11
11
|
export type { PluginOptions, Options };
|
package/lib/index.js
CHANGED
|
@@ -17,7 +17,7 @@ const PluginName = 'docusaurus-plugin-sitemap';
|
|
|
17
17
|
function pluginSitemap(context, options) {
|
|
18
18
|
if (context.siteConfig.future.experimental_router === 'hash') {
|
|
19
19
|
logger_1.default.warn(`${PluginName} does not support the Hash Router and will be disabled.`);
|
|
20
|
-
return
|
|
20
|
+
return null;
|
|
21
21
|
}
|
|
22
22
|
return {
|
|
23
23
|
name: PluginName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-sitemap",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5993",
|
|
4
4
|
"description": "Simple sitemap generation plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@docusaurus/core": "0.0.0-
|
|
22
|
-
"@docusaurus/logger": "0.0.0-
|
|
23
|
-
"@docusaurus/types": "0.0.0-
|
|
24
|
-
"@docusaurus/utils": "0.0.0-
|
|
25
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
26
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
21
|
+
"@docusaurus/core": "0.0.0-5993",
|
|
22
|
+
"@docusaurus/logger": "0.0.0-5993",
|
|
23
|
+
"@docusaurus/types": "0.0.0-5993",
|
|
24
|
+
"@docusaurus/utils": "0.0.0-5993",
|
|
25
|
+
"@docusaurus/utils-common": "0.0.0-5993",
|
|
26
|
+
"@docusaurus/utils-validation": "0.0.0-5993",
|
|
27
27
|
"fs-extra": "^11.1.1",
|
|
28
28
|
"sitemap": "^7.1.1",
|
|
29
29
|
"tslib": "^2.6.0"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=18.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "0ad0160fc910803276cb4b5fe34254b7ec372bd4"
|
|
42
42
|
}
|
package/src/index.ts
CHANGED
|
@@ -17,12 +17,12 @@ const PluginName = 'docusaurus-plugin-sitemap';
|
|
|
17
17
|
export default function pluginSitemap(
|
|
18
18
|
context: LoadContext,
|
|
19
19
|
options: PluginOptions,
|
|
20
|
-
): Plugin<void> {
|
|
20
|
+
): Plugin<void> | null {
|
|
21
21
|
if (context.siteConfig.future.experimental_router === 'hash') {
|
|
22
22
|
logger.warn(
|
|
23
23
|
`${PluginName} does not support the Hash Router and will be disabled.`,
|
|
24
24
|
);
|
|
25
|
-
return
|
|
25
|
+
return null;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
return {
|