@docusaurus/types 0.0.0-5332 → 0.0.0-5335
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 +16 -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-5335",
|
|
4
4
|
"description": "Common types for Docusaurus packages.",
|
|
5
5
|
"types": "./src/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"react": "^16.8.4 || ^17.0.0",
|
|
27
27
|
"react-dom": "^16.8.4 || ^17.0.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "42c59e0828b093f765f6c37d522c02ef74846a31"
|
|
30
30
|
}
|
package/src/config.d.ts
CHANGED
|
@@ -16,6 +16,20 @@ export type ThemeConfig = {
|
|
|
16
16
|
[key: string]: unknown;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
+
export type MarkdownConfig = {
|
|
20
|
+
/**
|
|
21
|
+
* Allow mermaid language code blocks to be rendered into Mermaid diagrams:
|
|
22
|
+
*
|
|
23
|
+
* - `true`: code blocks with language mermaid will be rendered.
|
|
24
|
+
* - `false` | `undefined` (default): code blocks with language mermaid
|
|
25
|
+
* will be left as code blocks.
|
|
26
|
+
*
|
|
27
|
+
* @see https://docusaurus.io/docs/markdown-features/diagrams/
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
mermaid?: boolean;
|
|
31
|
+
};
|
|
32
|
+
|
|
19
33
|
/**
|
|
20
34
|
* Docusaurus config, after validation/normalization.
|
|
21
35
|
*/
|
|
@@ -277,6 +291,8 @@ export type DocusaurusConfig = {
|
|
|
277
291
|
*/
|
|
278
292
|
jsLoader: 'babel' | ((isServer: boolean) => RuleSetRule);
|
|
279
293
|
};
|
|
294
|
+
/** Markdown-related options. */
|
|
295
|
+
markdown: MarkdownConfig;
|
|
280
296
|
};
|
|
281
297
|
|
|
282
298
|
/**
|