@alauda/doom 1.0.0 → 1.0.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.
@@ -52,6 +52,11 @@ const ALAUDA_ALGOLIA_OPTIONS = {
52
52
  apiKey: '487fb969bdcda09dd4950468d7d8b61e',
53
53
  indexName: 'docs_alauda_io_xn35q5jlsv_pages',
54
54
  };
55
+ const ALAUDA_RU_ALGOLIA_OPTIONS = {
56
+ appId: 'GBNIJIGQ50',
57
+ apiKey: '786fa6da36fe76777d688387c0520c5b',
58
+ indexName: 'docs_alauda_io_gbnijigq50_pages',
59
+ };
55
60
  const getCommonConfig = async ({ config, root, configFilePath, base, version, download, export: export_, ignore, force, open, lazy, include, exclude, redirect, editRepo, algolia, siteUrl, }) => {
56
61
  const fallbackToZh = 'lang' in config && !config.lang;
57
62
  root = resolveDocRoot(CWD, root, config.root);
@@ -110,7 +115,9 @@ const getCommonConfig = async ({ config, root, configFilePath, base, version, do
110
115
  const unusedLanguages = difference(allLanguages, locales.map(({ lang }) => lang));
111
116
  const { editLink, ...zhLocale } = KNOWN_LOCALE_CONFIGS.zh;
112
117
  const algoliaOptions = ((algolia && config.algolia) ??
113
- (algolia === 'alauda' && ALAUDA_ALGOLIA_OPTIONS)) ||
118
+ (algolia === 'alauda'
119
+ ? ALAUDA_ALGOLIA_OPTIONS
120
+ : algolia === 'alauda-ru' && ALAUDA_RU_ALGOLIA_OPTIONS)) ||
114
121
  null;
115
122
  return {
116
123
  userBase,
package/lib/cli/new.js CHANGED
@@ -107,7 +107,7 @@ export const newCommand = new Command('new')
107
107
  const source = path.resolve(base, render(layout.source, { parameters }));
108
108
  const target = path.resolve(render(layout.target, { parameters }));
109
109
  const when = layout.when && render(layout.when, { parameters });
110
- if (JS_STR_FALSY_VALUES.has(when)) {
110
+ if (when != null && JS_STR_FALSY_VALUES.has(when)) {
111
111
  continue;
112
112
  }
113
113
  switch (layout.type) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/doom",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
6
  "repository": "git+https://github.com/alauda/doom.git",
@@ -34,7 +34,7 @@
34
34
  "rspress-plugins"
35
35
  ],
36
36
  "dependencies": {
37
- "@cspell/eslint-plugin": "^9.0.2",
37
+ "@cspell/eslint-plugin": "^8.19.4 || ^9.0.2",
38
38
  "@eslint-react/eslint-plugin": "^1.51.0",
39
39
  "@inquirer/prompts": "^7.5.3",
40
40
  "@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
@@ -48,16 +48,16 @@
48
48
  "chokidar": "^4.0.3",
49
49
  "cli-progress": "^3.12.0",
50
50
  "clsx": "^2.1.1",
51
- "commander": "^13.1.0",
51
+ "commander": "^13.1.0 || ^14.0.0",
52
52
  "ejs": "^3.1.10",
53
- "es-toolkit": "^1.38.0",
53
+ "es-toolkit": "^1.39.0",
54
54
  "eslint": "^9.28.0",
55
55
  "eslint-plugin-mdx": "^3.4.2",
56
56
  "html-tag-names": "^2.1.0",
57
57
  "mdast-util-mdx": "^3.0.0",
58
58
  "mdast-util-mdx-jsx": "^3.2.0",
59
59
  "mermaid": "^11.6.0",
60
- "openai": "^5.1.0",
60
+ "openai": "^5.1.1",
61
61
  "openapi-types": "^12.1.3",
62
62
  "p-ratelimit": "^1.0.1",
63
63
  "pdf-lib": "^1.17.1",
@@ -70,11 +70,12 @@
70
70
  "remark-gfm": "^4.0.1",
71
71
  "remark-mdx": "^3.1.0",
72
72
  "remark-stringify": "^11.0.0",
73
- "shiki": "^3.5.0",
73
+ "shiki": "^3.6.0",
74
74
  "simple-git": "^3.27.0",
75
75
  "swagger2openapi": "^7.0.8",
76
76
  "tinyglobby": "^0.2.14",
77
77
  "type-fest": "^4.41.0",
78
+ "typescript": "^5.8.3",
78
79
  "typescript-eslint": "^8.33.1",
79
80
  "x-fetch": "^0.2.6",
80
81
  "yaml": "^2.8.0",