@docusaurus/core 0.0.0-4944 → 0.0.0-4945
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.
|
@@ -4,7 +4,8 @@
|
|
|
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 {
|
|
7
|
+
import type { NormalizedPluginConfig } from '../../server/plugins/configs';
|
|
8
|
+
import type { InitializedPlugin, SwizzleAction, SwizzleActionStatus } from '@docusaurus/types';
|
|
8
9
|
export declare const SwizzleActions: SwizzleAction[];
|
|
9
10
|
export declare const SwizzleActionsStatuses: SwizzleActionStatus[];
|
|
10
11
|
export declare const PartiallySafeHint: string;
|
|
@@ -4,7 +4,43 @@
|
|
|
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 { LoadContext,
|
|
7
|
+
import type { LoadContext, PluginModule, PluginOptions } from '@docusaurus/types';
|
|
8
|
+
declare type ImportedPluginModule = PluginModule & {
|
|
9
|
+
default?: PluginModule;
|
|
10
|
+
};
|
|
11
|
+
export declare type NormalizedPluginConfig = {
|
|
12
|
+
/**
|
|
13
|
+
* The default export of the plugin module, or alternatively, what's provided
|
|
14
|
+
* in the config file as inline plugins. Note that if a file is like:
|
|
15
|
+
*
|
|
16
|
+
* ```ts
|
|
17
|
+
* export default plugin() {...}
|
|
18
|
+
* export validateOptions() {...}
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* Then the static methods may not exist here. `pluginModule.module` will
|
|
22
|
+
* always take priority.
|
|
23
|
+
*/
|
|
24
|
+
plugin: PluginModule;
|
|
25
|
+
/** Options as they are provided in the config, not validated yet. */
|
|
26
|
+
options: PluginOptions;
|
|
27
|
+
/** Only available when a string is provided in config. */
|
|
28
|
+
pluginModule?: {
|
|
29
|
+
/**
|
|
30
|
+
* Raw module name as provided in the config. Shorthands have been resolved,
|
|
31
|
+
* so at least it's directly `require.resolve`able.
|
|
32
|
+
*/
|
|
33
|
+
path: string;
|
|
34
|
+
/** Whatever gets imported with `require`. */
|
|
35
|
+
module: ImportedPluginModule;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Different from `pluginModule.path`, this one is always an absolute path,
|
|
39
|
+
* used to resolve relative paths returned from lifecycles. If it's an inline
|
|
40
|
+
* plugin, it will be path to the config file.
|
|
41
|
+
*/
|
|
42
|
+
entryPath: string;
|
|
43
|
+
};
|
|
8
44
|
/**
|
|
9
45
|
* Reads the site config's `presets`, `themes`, and `plugins`, imports them, and
|
|
10
46
|
* normalizes the return value. Plugin configs are ordered, mostly for theme
|
|
@@ -12,3 +48,4 @@ import type { LoadContext, NormalizedPluginConfig } from '@docusaurus/types';
|
|
|
12
48
|
* are the lowest.
|
|
13
49
|
*/
|
|
14
50
|
export declare function loadPluginConfigs(context: LoadContext): Promise<NormalizedPluginConfig[]>;
|
|
51
|
+
export {};
|
|
@@ -4,7 +4,13 @@
|
|
|
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 {
|
|
7
|
+
import type { LoadedPlugin } from '@docusaurus/types';
|
|
8
|
+
/**
|
|
9
|
+
* Aliases used for Webpack resolution (useful for implementing swizzling)
|
|
10
|
+
*/
|
|
11
|
+
declare type ThemeAliases = {
|
|
12
|
+
[alias: string]: string;
|
|
13
|
+
};
|
|
8
14
|
/**
|
|
9
15
|
* Order of Webpack aliases is important because one alias can shadow another.
|
|
10
16
|
* This ensures `@theme/NavbarItem` alias is after
|
|
@@ -25,3 +31,4 @@ export declare function loadThemeAliases({ siteDir, plugins, }: {
|
|
|
25
31
|
* aliases instead.
|
|
26
32
|
*/
|
|
27
33
|
export declare function loadDocusaurusAliases(): Promise<ThemeAliases>;
|
|
34
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/core",
|
|
3
3
|
"description": "Easy to Maintain Open Source Documentation Websites",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-4945",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@babel/runtime": "^7.17.9",
|
|
42
42
|
"@babel/runtime-corejs3": "^7.17.9",
|
|
43
43
|
"@babel/traverse": "^7.17.10",
|
|
44
|
-
"@docusaurus/cssnano-preset": "0.0.0-
|
|
45
|
-
"@docusaurus/logger": "0.0.0-
|
|
46
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
44
|
+
"@docusaurus/cssnano-preset": "0.0.0-4945",
|
|
45
|
+
"@docusaurus/logger": "0.0.0-4945",
|
|
46
|
+
"@docusaurus/mdx-loader": "0.0.0-4945",
|
|
47
47
|
"@docusaurus/react-loadable": "5.5.2",
|
|
48
|
-
"@docusaurus/utils": "0.0.0-
|
|
49
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
50
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
48
|
+
"@docusaurus/utils": "0.0.0-4945",
|
|
49
|
+
"@docusaurus/utils-common": "0.0.0-4945",
|
|
50
|
+
"@docusaurus/utils-validation": "0.0.0-4945",
|
|
51
51
|
"@slorber/static-site-generator-webpack-plugin": "^4.0.4",
|
|
52
52
|
"@svgr/webpack": "^6.2.1",
|
|
53
53
|
"autoprefixer": "^10.4.5",
|
|
@@ -104,8 +104,8 @@
|
|
|
104
104
|
"webpackbar": "^5.0.2"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
108
|
-
"@docusaurus/types": "0.0.0-
|
|
107
|
+
"@docusaurus/module-type-aliases": "0.0.0-4945",
|
|
108
|
+
"@docusaurus/types": "0.0.0-4945",
|
|
109
109
|
"@types/detect-port": "^1.3.2",
|
|
110
110
|
"@types/react-dom": "^18.0.3",
|
|
111
111
|
"@types/react-router-config": "^5.0.6",
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"engines": {
|
|
126
126
|
"node": ">=14"
|
|
127
127
|
},
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "a3b20e1bfad392b7f91afef66de502e41a3adcb4"
|
|
129
129
|
}
|