Skip to content

Commit dfb55db

Browse files
authored
Merge branch 'main' into zh_translation
2 parents 3450d20 + 39ce30d commit dfb55db

File tree

2,520 files changed

+248017
-498
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,520 files changed

+248017
-498
lines changed

docusaurus.config.en.js

+20-34
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,24 @@ const config = {
5757
trailingSlash: false,
5858
i18n: {
5959
defaultLocale: "en",
60-
locales: ["en"],
60+
locales: ["ru", "en", "jp"],
6161
path: "i18n",
6262
localeConfigs: {
63+
ru: {
64+
label: "Russian",
65+
htmlLang: "ru",
66+
path: "ru",
67+
},
6368
en: {
69+
label: "English",
6470
htmlLang: "en",
6571
path: "en",
6672
},
73+
jp: {
74+
label: "Japanese",
75+
htmlLang: "jp",
76+
path: "jp",
77+
},
6778
},
6879
},
6980
staticDirectories: ["static"],
@@ -270,14 +281,14 @@ const config = {
270281
defaultMode: "dark",
271282
},
272283
/* announcementBar: {
273-
id: 'support_us',
274-
content:
275-
'Check out our new 25-minute video on <a href="https://clickhouse.com/company/events/getting-started-with-clickhouse/" target="_blank"> Getting Started with ClickHouse</a>',
276-
backgroundColor: '#0057b7',
277-
textColor: '#ffffff',
278-
isCloseable: false,
279-
},
280-
*/
284+
id: 'support_us',
285+
content:
286+
'Check out our new 25-minute video on <a href="https://clickhouse.com/company/events/getting-started-with-clickhouse/" target="_blank"> Getting Started with ClickHouse</a>',
287+
backgroundColor: '#0057b7',
288+
textColor: '#ffffff',
289+
isCloseable: false,
290+
},
291+
*/
281292
}),
282293

283294
plugins: [
@@ -312,31 +323,6 @@ const config = {
312323
blogSidebarLink: "/docs/knowledgebase", // Used for KB article page
313324
galaxyApiEndpoint:
314325
process.env.NEXT_PUBLIC_GALAXY_API_ENDPOINT || "http://localhost:3000",
315-
secondaryNavItems: [
316-
{
317-
type: "dropdown",
318-
hoverable: "false",
319-
html:
320-
'<svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n' +
321-
'<path d="M6.95 12.6496L9.75 5.26628H11.0333L13.8333 12.6496H12.55L11.9 10.7663H8.91667L8.25 12.6496H6.95ZM9.28333 9.69961H11.5L10.4167 6.64961H10.3667L9.28333 9.69961ZM2.08333 10.7996L1.21667 9.93294L4.33333 6.83294C3.94444 6.39961 3.60556 5.95228 3.31667 5.49094C3.02778 5.03005 2.77222 4.54405 2.55 4.03294H3.83333C4.02222 4.41072 4.22222 4.74672 4.43333 5.04094C4.64444 5.33561 4.89444 5.64405 5.18333 5.96628C5.63889 5.47739 6.01667 4.97472 6.31667 4.45828C6.61667 3.94139 6.86667 3.3885 7.06667 2.79961H0.25V1.58294H4.55V0.349609H5.78333V1.58294H10.0833V2.79961H8.3C8.07778 3.53294 7.78333 4.24116 7.41667 4.92428C7.05 5.60783 6.59444 6.25516 6.05 6.86628L7.53333 8.36628L7.06667 9.63294L5.16667 7.73294L2.08333 10.7996Z" fill="currentColor"/>\n' +
322-
"</svg>",
323-
position: "right",
324-
items: [
325-
{
326-
label: "English",
327-
to: "/",
328-
},
329-
{
330-
label: "Russian",
331-
to: "/ru",
332-
},
333-
{
334-
label: "Chinese",
335-
to: "/zh",
336-
},
337-
],
338-
},
339-
],
340326
},
341327
};
342328

docusaurus.config.jp.js

+11-21
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,24 @@ const config = {
5757
trailingSlash: false,
5858
i18n: {
5959
defaultLocale: "jp",
60-
locales: ["jp", "en"],
60+
locales: ["ru", "en", "jp"],
6161
path: "i18n",
6262
localeConfigs: {
63-
jp: {
64-
htmlLang: "jp",
65-
path: "jp",
63+
ru: {
64+
label: "Russian",
65+
htmlLang: "ru",
66+
path: "ru",
6667
},
6768
en: {
69+
label: "English",
6870
htmlLang: "en",
6971
path: "en",
7072
},
73+
jp: {
74+
label: "Japanese",
75+
htmlLang: "jp",
76+
path: "jp",
77+
},
7178
},
7279
},
7380
staticDirectories: ["static"],
@@ -279,23 +286,6 @@ const config = {
279286
blogSidebarLink: "/docs/knowledgebase", // Used for KB article page
280287
galaxyApiEndpoint:
281288
process.env.NEXT_PUBLIC_GALAXY_API_ENDPOINT || "http://localhost:3000",
282-
secondaryNavItems: [
283-
{
284-
type: "dropdown",
285-
hoverable: "false",
286-
html:
287-
'<svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n' +
288-
'<path d="M6.95 12.6496L9.75 5.26628H11.0333L13.8333 12.6496H12.55L11.9 10.7663H8.91667L8.25 12.6496H6.95ZM9.28333 9.69961H11.5L10.4167 6.64961H10.3667L9.28333 9.69961ZM2.08333 10.7996L1.21667 9.93294L4.33333 6.83294C3.94444 6.39961 3.60556 5.95228 3.31667 5.49094C3.02778 5.03005 2.77222 4.54405 2.55 4.03294H3.83333C4.02222 4.41072 4.22222 4.74672 4.43333 5.04094C4.64444 5.33561 4.89444 5.64405 5.18333 5.96628C5.63889 5.47739 6.01667 4.97472 6.31667 4.45828C6.61667 3.94139 6.86667 3.3885 7.06667 2.79961H0.25V1.58294H4.55V0.349609H5.78333V1.58294H10.0833V2.79961H8.3C8.07778 3.53294 7.78333 4.24116 7.41667 4.92428C7.05 5.60783 6.59444 6.25516 6.05 6.86628L7.53333 8.36628L7.06667 9.63294L5.16667 7.73294L2.08333 10.7996Z" fill="currentColor"/>\n' +
289-
"</svg>",
290-
position: "right",
291-
items: [
292-
{
293-
label: "English",
294-
to: "/",
295-
},
296-
],
297-
},
298-
],
299289
},
300290
};
301291

docusaurus.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import enConfig from "./docusaurus.config.en.js";
22
import jpConfig from "./docusaurus.config.jp.js";
33
import zhConfig from "./docusaurus.config.zh.js";
4+
import ruConfig from "./docusaurus.config.ru.js";
5+
46
const env = process.env.DOCUSUARUS_LOCALE || "en"; // Default to "en"
57

68
const configMap = {
79
en: enConfig,
810
jp: jpConfig,
9-
zh: zhConfig
11+
zh: zhConfig,
12+
ru: ruConfig
1013
};
1114

1215
// Export the selected config, defaulting to English if the environment variable is invalid

0 commit comments

Comments
 (0)