@docusaurus/types 0.0.0-5945 → 0.0.0-5946
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/package.json +2 -2
- package/src/config.d.ts +20 -0
- package/src/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/types",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-5946",
|
|
4
4
|
"description": "Common types for Docusaurus packages.",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"react": "^18.0.0",
|
|
28
28
|
"react-dom": "^18.0.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "22332e32d47aea6bc27ca36b2ef50f12cd1427c8"
|
|
31
31
|
}
|
package/src/config.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export type RemarkRehypeOptions = ProcessorOptions['remarkRehypeOptions'];
|
|
|
17
17
|
|
|
18
18
|
export type ReportingSeverity = 'ignore' | 'log' | 'warn' | 'throw';
|
|
19
19
|
|
|
20
|
+
export type RouterType = 'browser' | 'hash';
|
|
21
|
+
|
|
20
22
|
export type ThemeConfig = {
|
|
21
23
|
[key: string]: unknown;
|
|
22
24
|
};
|
|
@@ -123,6 +125,24 @@ export type StorageConfig = {
|
|
|
123
125
|
|
|
124
126
|
export type FutureConfig = {
|
|
125
127
|
experimental_storage: StorageConfig;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Docusaurus can work with 2 router types.
|
|
131
|
+
*
|
|
132
|
+
* - The "browser" router is the main/default router of Docusaurus.
|
|
133
|
+
* It will use the browser history and regular urls to navigate from
|
|
134
|
+
* one page to another. A static file will be emitted for each page.
|
|
135
|
+
*
|
|
136
|
+
* - The "hash" router can be useful in very specific situations (such as
|
|
137
|
+
* distributing your app for offline-first usage), but should be avoided
|
|
138
|
+
* in most cases. All pages paths will be prefixed with a /#/.
|
|
139
|
+
* It will opt out of static site generation, only emit a single index.html
|
|
140
|
+
* entry point, and use the browser hash for routing. The Docusaurus site
|
|
141
|
+
* content will be rendered client-side, like a regular single page
|
|
142
|
+
* application.
|
|
143
|
+
* @see https://github.com/facebook/docusaurus/issues/3825
|
|
144
|
+
*/
|
|
145
|
+
experimental_router: RouterType;
|
|
126
146
|
};
|
|
127
147
|
|
|
128
148
|
/**
|