@alauda/doom 1.0.0-next.9 → 1.0.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.
- package/lib/cli/load-config.js +8 -1
- package/package.json +1 -1
package/lib/cli/load-config.js
CHANGED
|
@@ -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'
|
|
118
|
+
(algolia === 'alauda'
|
|
119
|
+
? ALAUDA_ALGOLIA_OPTIONS
|
|
120
|
+
: algolia === 'alauda-ru' && ALAUDA_RU_ALGOLIA_OPTIONS)) ||
|
|
114
121
|
null;
|
|
115
122
|
return {
|
|
116
123
|
userBase,
|