@alauda/doom 1.10.3 → 1.10.5
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/cli/load-config.js
CHANGED
|
@@ -207,6 +207,9 @@ const getCommonConfig = async ({ config, root, configFilePath, base, version, do
|
|
|
207
207
|
dev: {
|
|
208
208
|
lazyCompilation: lazy,
|
|
209
209
|
},
|
|
210
|
+
performance: {
|
|
211
|
+
buildCache: false,
|
|
212
|
+
},
|
|
210
213
|
plugins: [pluginReact(), pluginSass(), pluginSvgr(), pluginYaml()],
|
|
211
214
|
resolve: {
|
|
212
215
|
alias: {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { directiveToMarkdown } from 'mdast-util-directive';
|
|
2
|
+
import { toMarkdown } from 'mdast-util-to-markdown';
|
|
1
3
|
import { visit } from 'unist-util-visit';
|
|
2
4
|
export const remarkDirectives = function () {
|
|
3
5
|
return (root) => {
|
|
4
|
-
visit(root, (node) => {
|
|
6
|
+
visit(root, (node, index, parent) => {
|
|
5
7
|
if (node.type !== 'containerDirective' &&
|
|
6
8
|
node.type !== 'leafDirective' &&
|
|
7
9
|
node.type !== 'textDirective') {
|
|
@@ -14,7 +16,12 @@ export const remarkDirectives = function () {
|
|
|
14
16
|
break;
|
|
15
17
|
}
|
|
16
18
|
default: {
|
|
17
|
-
|
|
19
|
+
parent.children[index] = {
|
|
20
|
+
type: 'text',
|
|
21
|
+
value: toMarkdown(node, {
|
|
22
|
+
extensions: [directiveToMarkdown()],
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
18
25
|
}
|
|
19
26
|
}
|
|
20
27
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alauda/doom",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Doctor Doom making docs.",
|
|
6
6
|
"repository": "git+https://github.com/alauda/doom.git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@cspell/eslint-plugin": "^8.19.4 || ^9.1.5",
|
|
40
40
|
"@eslint-react/eslint-plugin": "^1.52.3",
|
|
41
|
-
"@inquirer/prompts": "^7.
|
|
41
|
+
"@inquirer/prompts": "^7.7.1",
|
|
42
42
|
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
|
|
43
43
|
"@playwright/browser-chromium": "^1.54.1",
|
|
44
44
|
"@rsbuild/plugin-react": "^1.3.4",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@rspress/plugin-algolia": "2.0.0-beta.21",
|
|
49
49
|
"@rspress/plugin-llms": "2.0.0-beta.21",
|
|
50
50
|
"@rspress/shared": "2.0.0-beta.21",
|
|
51
|
-
"@shikijs/transformers": "^3.8.
|
|
51
|
+
"@shikijs/transformers": "^3.8.1",
|
|
52
52
|
"@total-typescript/ts-reset": "^0.6.1",
|
|
53
53
|
"chokidar": "^4.0.3",
|
|
54
54
|
"cli-progress": "^3.12.0",
|
|
@@ -61,9 +61,11 @@
|
|
|
61
61
|
"globals": "^16.3.0",
|
|
62
62
|
"html-tag-names": "^2.1.0",
|
|
63
63
|
"md-attr-parser": "^1.3.0",
|
|
64
|
+
"mdast-util-directive": "^3.1.0",
|
|
64
65
|
"mdast-util-mdx": "^3.0.0",
|
|
65
66
|
"mdast-util-mdx-jsx": "^3.2.0",
|
|
66
67
|
"mdast-util-phrasing": "^4.1.0",
|
|
68
|
+
"mdast-util-to-markdown": "^2.1.2",
|
|
67
69
|
"mdast-util-to-string": "^4.0.0",
|
|
68
70
|
"mermaid": "^11.9.0",
|
|
69
71
|
"openai": "^5.10.1",
|
|
@@ -90,14 +92,14 @@
|
|
|
90
92
|
"remark-message-control": "^8.0.0",
|
|
91
93
|
"remark-stringify": "^11.0.0",
|
|
92
94
|
"rspress": "2.0.0-beta.21",
|
|
93
|
-
"shiki": "^3.8.
|
|
95
|
+
"shiki": "^3.8.1",
|
|
94
96
|
"simple-git": "^3.28.0",
|
|
95
97
|
"string-width": "^7.2.0",
|
|
96
98
|
"swagger2openapi": "^7.0.8",
|
|
97
99
|
"tinyglobby": "^0.2.14",
|
|
98
100
|
"type-fest": "^4.41.0",
|
|
99
101
|
"typescript": "^5.8.3",
|
|
100
|
-
"typescript-eslint": "^8.
|
|
102
|
+
"typescript-eslint": "^8.38.0",
|
|
101
103
|
"unified": "^11.0.5",
|
|
102
104
|
"unified-lint-rule": "^3.0.1",
|
|
103
105
|
"unist-util-position": "^5.0.0",
|