@alauda/doom 1.21.0 → 1.21.2

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.
@@ -330,22 +330,20 @@ export async function loadConfig(root, { config: configFile, base, prefix, v: ve
330
330
  lang,
331
331
  root,
332
332
  });
333
- if (export_) {
334
- const hasLocales = !!commonConfig.themeConfig.locales?.length;
335
- const apiEntries = await glob(`${hasLocales ? commonConfig.lang + '/' : ''}apis/{advanced_apis,crds,kubernetes_apis}/*/index.{md,mdx}`, { cwd: root });
336
- const apiExports = apiEntries.map((entry) => {
337
- const scope = entry.replace(/index\.mdx?$/, '');
338
- return {
339
- name: path.basename(path.dirname(entry)) + '_apis',
340
- scope: hasLocales ? scope.replace(lang, '*') : scope,
341
- };
342
- });
343
- mergedConfig.export = await Promise.all([...(config.export ?? []), ...apiExports].map(async (item) => ({
344
- ...item,
345
- scope: Array.isArray(item.scope) ? item.scope : [item.scope],
346
- flattenScope: (await glob(item.scope, { cwd: root })).filter(isDoc),
347
- })));
348
- }
333
+ const hasLocales = !!commonConfig.themeConfig.locales?.length;
334
+ const apiEntries = await glob(`${hasLocales ? commonConfig.lang + '/' : ''}apis/{advanced_apis,crds,kubernetes_apis}/*/index.{md,mdx}`, { cwd: root });
335
+ const apiExports = apiEntries.map((entry) => {
336
+ const scope = entry.replace(/index\.mdx?$/, '');
337
+ return {
338
+ name: path.basename(path.dirname(entry)) + '_apis',
339
+ scope: hasLocales ? scope.replace(lang, '*') : scope,
340
+ };
341
+ });
342
+ mergedConfig.export = await Promise.all([...(config.export ?? []), ...apiExports].map(async (item) => ({
343
+ ...item,
344
+ scope: Array.isArray(item.scope) ? item.scope : [item.scope],
345
+ flattenScope: (await glob(item.scope, { cwd: root })).filter(isDoc),
346
+ })));
349
347
  if (base && prefix) {
350
348
  mergedConfig.base = (mergedConfig.prefix = normalizeSlash(prefix)) + base;
351
349
  }
@@ -24,7 +24,7 @@ const getClosestSidebar_ = (sidebarItems, pathname, exportItem, matched, depth =
24
24
  if (depth === 0) {
25
25
  matched = undefined;
26
26
  }
27
- if (exportItem.flattenScope?.includes(sidebar._fileKey)) {
27
+ if (exportItem.flattenScope.includes(sidebar._fileKey)) {
28
28
  matched = {
29
29
  sidebar,
30
30
  exportItem,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/doom",
3
- "version": "1.21.0",
3
+ "version": "1.21.2",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
6
  "repository": {
@@ -45,24 +45,24 @@
45
45
  "@eslint-react/eslint-plugin": "^2.13.0",
46
46
  "@inquirer/prompts": "^8.3.0",
47
47
  "@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
48
- "@rsbuild/plugin-react": "^1.4.5",
49
- "@rsbuild/plugin-sass": "^1.5.0",
50
- "@rsbuild/plugin-svgr": "^1.3.0",
48
+ "@rsbuild/plugin-react": "^1.4.6",
49
+ "@rsbuild/plugin-sass": "^1.5.1",
50
+ "@rsbuild/plugin-svgr": "^1.3.1",
51
51
  "@rsbuild/plugin-yaml": "^1.0.4",
52
- "@rspress/core": "2.0.4",
53
- "@rspress/plugin-algolia": "2.0.4",
54
- "@rspress/plugin-sitemap": "2.0.4",
55
- "@rspress/shared": "2.0.4",
56
- "@shikijs/transformers": "^4.0.1",
52
+ "@rspress/core": "2.0.5",
53
+ "@rspress/plugin-algolia": "2.0.5",
54
+ "@rspress/plugin-sitemap": "2.0.5",
55
+ "@rspress/shared": "2.0.5",
56
+ "@shikijs/transformers": "^4.0.2",
57
57
  "@total-typescript/ts-reset": "^0.6.1",
58
58
  "@types/react": "^19.2.14",
59
59
  "ab64": "^0.1.6",
60
60
  "chokidar": "^5.0.0",
61
61
  "clsx": "^2.1.1",
62
62
  "commander": "^14.0.3",
63
- "ejs": "^4.0.1",
64
- "es-toolkit": "^1.45.0",
65
- "eslint": "^9.39.3",
63
+ "ejs": "^5.0.1",
64
+ "es-toolkit": "^1.45.1",
65
+ "eslint": "^10.0.3",
66
66
  "eslint-plugin-mdx": "^3.7.0",
67
67
  "globals": "^17.4.0",
68
68
  "html-tag-names": "^2.1.0",
@@ -73,8 +73,8 @@
73
73
  "mdast-util-phrasing": "^4.1.0",
74
74
  "mdast-util-to-markdown": "^2.1.2",
75
75
  "mdast-util-to-string": "^4.0.0",
76
- "mermaid": "^11.12.3",
77
- "openai": "^6.25.0",
76
+ "mermaid": "^11.13.0",
77
+ "openai": "^6.27.0",
78
78
  "openapi-types": "^12.1.3",
79
79
  "p-ratelimit": "^1.0.1",
80
80
  "picomatch": "^4.0.3",
@@ -95,13 +95,13 @@
95
95
  "remark-mdx": "^3.1.1",
96
96
  "remark-message-control": "^8.0.0",
97
97
  "remark-stringify": "^11.0.0",
98
- "simple-git": "^3.32.3",
98
+ "simple-git": "^3.33.0",
99
99
  "string-width": "^8.2.0",
100
100
  "swagger2openapi": "^7.0.8",
101
101
  "tinyglobby": "^0.2.15",
102
102
  "type-fest": "^5.4.4",
103
103
  "typescript": "^5.9.3",
104
- "typescript-eslint": "^8.56.1",
104
+ "typescript-eslint": "^8.57.0",
105
105
  "unified": "^11.0.5",
106
106
  "unified-lint-rule": "^3.0.1",
107
107
  "unist-util-position": "^5.0.0",