@alauda/doom 1.1.0 → 1.1.1
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.
|
@@ -20,9 +20,9 @@ const LEGACY_NAV_ITEMS = LEGACY_VERSIONS.map((v) => ({
|
|
|
20
20
|
text: v,
|
|
21
21
|
link: `https://docs.alauda.io/document/release-notes?version=${v}`,
|
|
22
22
|
}));
|
|
23
|
-
const
|
|
23
|
+
const ALLOWED_LEGACY_DOMAINS = new Set(['docs.alauda.cn', 'docs.alauda.io']);
|
|
24
24
|
if (!isProduction()) {
|
|
25
|
-
|
|
25
|
+
ALLOWED_LEGACY_DOMAINS.add('localhost');
|
|
26
26
|
}
|
|
27
27
|
const VersionsNav_ = () => {
|
|
28
28
|
const { siteData } = usePageData();
|
|
@@ -99,7 +99,7 @@ const VersionsNav_ = () => {
|
|
|
99
99
|
? { text: v, items: [] }
|
|
100
100
|
: { text: v, link: `${versionsBase}/${v}/`, activeMatch: v });
|
|
101
101
|
if (versionsBase != null &&
|
|
102
|
-
|
|
102
|
+
ALLOWED_LEGACY_DOMAINS.has(location.hostname) &&
|
|
103
103
|
virtual.userBase === ACP_BASE) {
|
|
104
104
|
versionItems.push(...LEGACY_NAV_ITEMS);
|
|
105
105
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alauda/doom",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Doctor Doom making docs.",
|
|
6
6
|
"repository": "git+https://github.com/alauda/doom.git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@cspell/eslint-plugin": "^8.19.4 || ^9.0.2",
|
|
38
|
-
"@eslint-react/eslint-plugin": "^1.51.
|
|
38
|
+
"@eslint-react/eslint-plugin": "^1.51.2",
|
|
39
39
|
"@inquirer/prompts": "^7.5.3",
|
|
40
40
|
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
|
|
41
41
|
"@playwright/browser-chromium": "^1.52.0",
|
|
@@ -47,12 +47,13 @@
|
|
|
47
47
|
"@rspress/plugin-algolia": "2.0.0-beta.11",
|
|
48
48
|
"@rspress/plugin-llms": "^2.0.0-beta.11",
|
|
49
49
|
"@shikijs/transformers": "^3.6.0",
|
|
50
|
+
"@total-typescript/ts-reset": "^0.6.1",
|
|
50
51
|
"chokidar": "^4.0.3",
|
|
51
52
|
"cli-progress": "^3.12.0",
|
|
52
53
|
"clsx": "^2.1.1",
|
|
53
54
|
"commander": "^13.1.0 || ^14.0.0",
|
|
54
55
|
"ejs": "^3.1.10",
|
|
55
|
-
"es-toolkit": "^1.39.
|
|
56
|
+
"es-toolkit": "^1.39.3",
|
|
56
57
|
"eslint": "^9.28.0",
|
|
57
58
|
"eslint-plugin-mdx": "^3.4.2",
|
|
58
59
|
"html-tag-names": "^2.1.0",
|