@docusaurus/plugin-content-pages 0.0.0-4377 → 0.0.0-4384
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 +2 -1
- package/lib/pluginOptionSchema.d.ts +1 -1
- package/lib/types.d.ts +0 -10
- package/package.json +7 -7
- package/src/index.ts +2 -6
- package/src/plugin-content-pages.d.ts +13 -1
- package/src/pluginOptionSchema.ts +1 -1
- package/src/types.ts +0 -12
package/lib/index.d.ts
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import type { LoadContext, Plugin, OptionValidationContext, ValidationResult } from '@docusaurus/types';
|
|
8
|
-
import type {
|
|
8
|
+
import type { LoadedContent, PagesContentPaths } from './types';
|
|
9
|
+
import type { PluginOptions } from '@docusaurus/plugin-content-pages';
|
|
9
10
|
export declare function getContentPathList(contentPaths: PagesContentPaths): string[];
|
|
10
11
|
export default function pluginContentPages(context: LoadContext, options: PluginOptions): Promise<Plugin<LoadedContent | null>>;
|
|
11
12
|
export declare function validateOptions({ validate, options, }: OptionValidationContext<PluginOptions>): ValidationResult<PluginOptions>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import type { PluginOptions } from '
|
|
7
|
+
import type { PluginOptions } from '@docusaurus/plugin-content-pages';
|
|
8
8
|
import { Joi } from '@docusaurus/utils-validation';
|
|
9
9
|
export declare const DEFAULT_OPTIONS: PluginOptions;
|
|
10
10
|
export declare const PluginOptionSchema: Joi.ObjectSchema<any>;
|
package/lib/types.d.ts
CHANGED
|
@@ -4,16 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import type { RemarkAndRehypePluginOptions } from '@docusaurus/mdx-loader';
|
|
8
|
-
export declare type PluginOptions = RemarkAndRehypePluginOptions & {
|
|
9
|
-
id?: string;
|
|
10
|
-
path: string;
|
|
11
|
-
routeBasePath: string;
|
|
12
|
-
include: string[];
|
|
13
|
-
exclude: string[];
|
|
14
|
-
mdxPageComponent: string;
|
|
15
|
-
admonitions: Record<string, unknown>;
|
|
16
|
-
};
|
|
17
7
|
export declare type JSXPageMetadata = {
|
|
18
8
|
type: 'jsx';
|
|
19
9
|
permalink: string;
|
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-4384",
|
|
4
4
|
"description": "Pages plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-content-pages.d.ts",
|
|
@@ -18,10 +18,10 @@
|
|
|
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-4384",
|
|
22
|
+
"@docusaurus/mdx-loader": "0.0.0-4384",
|
|
23
|
+
"@docusaurus/utils": "0.0.0-4384",
|
|
24
|
+
"@docusaurus/utils-validation": "0.0.0-4384",
|
|
25
25
|
"fs-extra": "^10.0.0",
|
|
26
26
|
"globby": "^11.0.2",
|
|
27
27
|
"remark-admonitions": "^1.2.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"webpack": "^5.61.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@docusaurus/types": "0.0.0-
|
|
32
|
+
"@docusaurus/types": "0.0.0-4384"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": "^16.8.4 || ^17.0.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"engines": {
|
|
39
39
|
"node": ">=14"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "51cb250b7c01a53bdf32414249281eab0b320df8"
|
|
42
42
|
}
|
package/src/index.ts
CHANGED
|
@@ -31,12 +31,8 @@ import type {Configuration} from 'webpack';
|
|
|
31
31
|
import admonitions from 'remark-admonitions';
|
|
32
32
|
import {PluginOptionSchema} from './pluginOptionSchema';
|
|
33
33
|
|
|
34
|
-
import type {
|
|
35
|
-
|
|
36
|
-
LoadedContent,
|
|
37
|
-
Metadata,
|
|
38
|
-
PagesContentPaths,
|
|
39
|
-
} from './types';
|
|
34
|
+
import type {LoadedContent, Metadata, PagesContentPaths} from './types';
|
|
35
|
+
import type {PluginOptions} from '@docusaurus/plugin-content-pages';
|
|
40
36
|
|
|
41
37
|
export function getContentPathList(contentPaths: PagesContentPaths): string[] {
|
|
42
38
|
return [contentPaths.contentPathLocalized, contentPaths.contentPath];
|
|
@@ -6,7 +6,19 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
declare module '@docusaurus/plugin-content-pages' {
|
|
9
|
-
|
|
9
|
+
import type {RemarkAndRehypePluginOptions} from '@docusaurus/mdx-loader';
|
|
10
|
+
|
|
11
|
+
export type PluginOptions = RemarkAndRehypePluginOptions & {
|
|
12
|
+
id?: string;
|
|
13
|
+
path: string;
|
|
14
|
+
routeBasePath: string;
|
|
15
|
+
include: string[];
|
|
16
|
+
exclude: string[];
|
|
17
|
+
mdxPageComponent: string;
|
|
18
|
+
admonitions: Record<string, unknown>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type Options = Partial<PluginOptions>;
|
|
10
22
|
}
|
|
11
23
|
|
|
12
24
|
declare module '@theme/MDXPage' {
|
package/src/types.ts
CHANGED
|
@@ -5,18 +5,6 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type {RemarkAndRehypePluginOptions} from '@docusaurus/mdx-loader';
|
|
9
|
-
|
|
10
|
-
export type PluginOptions = RemarkAndRehypePluginOptions & {
|
|
11
|
-
id?: string;
|
|
12
|
-
path: string;
|
|
13
|
-
routeBasePath: string;
|
|
14
|
-
include: string[];
|
|
15
|
-
exclude: string[];
|
|
16
|
-
mdxPageComponent: string;
|
|
17
|
-
admonitions: Record<string, unknown>;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
8
|
export type JSXPageMetadata = {
|
|
21
9
|
type: 'jsx';
|
|
22
10
|
permalink: string;
|