Skip to content

Commit 3e479c8

Browse files
Merge pull request #2615 from ClickHouse/nodejs-broken-redirect
nodejs client. add redirect for an old url
2 parents ad1179b + 4e510aa commit 3e479c8

File tree

1 file changed

+45
-38
lines changed

1 file changed

+45
-38
lines changed

docusaurus.config.js

Lines changed: 45 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ const config = {
1111
"data-project-name": "ClickHouse",
1212
"data-project-color": "#151515",
1313
"data-project-logo": "https://avatars.githubusercontent.com/u/54801242?s=200&v=4",
14-
"data-modal-disclaimer":"This is a custom LLM for ClickHouse with access to all developer documentation, open GitHub Issues, YouTube videos, and resolved StackOverflow posts. Please note that answers are generated by AI and may not be fully accurate, so please use your best judgement.",
15-
"data-modal-example-questions":"How to speed up queries?,How to use materialized views?",
14+
"data-modal-disclaimer": "This is a custom LLM for ClickHouse with access to all developer documentation, open GitHub Issues, YouTube videos, and resolved StackOverflow posts. Please note that answers are generated by AI and may not be fully accurate, so please use your best judgement.",
15+
"data-modal-example-questions": "How to speed up queries?,How to use materialized views?",
1616
"data-kapa-branding-hide": "true",
1717
async: true,
1818
}],
1919
stylesheets: [
20-
{
21-
href: "https://unpkg.com/@antonz/[email protected]/dist/snippet.css",
22-
},
23-
],
20+
{
21+
href: "https://unpkg.com/@antonz/[email protected]/dist/snippet.css",
22+
},
23+
],
2424
webpack: {
2525
jsLoader: (isServer) => ({
26-
loader: require.resolve('esbuild-loader'),
27-
options: {
28-
loader: 'tsx',
29-
target: isServer ? 'node12' : 'es2017',
30-
},
26+
loader: require.resolve('esbuild-loader'),
27+
options: {
28+
loader: 'tsx',
29+
target: isServer ? 'node12' : 'es2017',
30+
},
3131
}),
32-
},
32+
},
3333
title: 'ClickHouse Docs',
3434
tagline:
3535
'Documentation, quick starts, user guides, technical references, FAQs and more...',
@@ -86,7 +86,7 @@ const config = {
8686
sidebarCollapsed: true,
8787
routeBasePath: '/',
8888
remarkPlugins: [math],
89-
rehypePlugins: [katex],
89+
rehypePlugins: [katex],
9090
},
9191
blog: {
9292
path: 'knowledgebase',
@@ -128,16 +128,16 @@ const config = {
128128
}),
129129
],
130130
],
131-
stylesheets:
132-
[
133-
{
134-
href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css',
135-
type: 'text/css',
136-
integrity:
137-
'sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM',
138-
crossorigin: 'anonymous',
139-
},
140-
],
131+
stylesheets:
132+
[
133+
{
134+
href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css',
135+
type: 'text/css',
136+
integrity:
137+
'sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM',
138+
crossorigin: 'anonymous',
139+
},
140+
],
141141
themeConfig:
142142
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
143143
({
@@ -268,14 +268,14 @@ const config = {
268268
defaultMode: 'dark',
269269
},
270270
/* announcementBar: {
271-
id: 'support_us',
272-
content:
273-
'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>',
274-
backgroundColor: '#0057b7',
275-
textColor: '#ffffff',
276-
isCloseable: false,
277-
},
278-
*/
271+
id: 'support_us',
272+
content:
273+
'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>',
274+
backgroundColor: '#0057b7',
275+
textColor: '#ffffff',
276+
isCloseable: false,
277+
},
278+
*/
279279
}),
280280

281281
plugins: [
@@ -546,6 +546,10 @@ const config = {
546546
from: '/en/connect-a-ui/tableau-and-clickhouse',
547547
to: '/en/integrations/tableau',
548548
},
549+
{
550+
from: '/en/integrations/language-clients/javascript',
551+
to: '/en/integrations/javascript'
552+
},
549553
{
550554
from: '/en/integrations/language-clients/python/intro',
551555
to: '/en/integrations/python',
@@ -566,7 +570,8 @@ const config = {
566570
from: '/en/integrations/language-clients/python/options',
567571
to: '/en/integrations/python',
568572
},
569-
{ from: '/en/integrations/go/intro',
573+
{
574+
from: '/en/integrations/go/intro',
570575
to: '/en/integrations/go'
571576
},
572577
{
@@ -674,7 +679,7 @@ const config = {
674679
from: '/en/guides/sre/configuring-s3-for-clickhouse-use',
675680
to: '/en/integrations/s3',
676681
},
677-
{ from: '/en/guides/sre/s3-multi-region', to: '/en/integrations/s3' },
682+
{ from: '/en/guides/sre/s3-multi-region', to: '/en/integrations/s3' },
678683
{
679684
from: '/en/guides/sre/gcs-multi-region',
680685
to: '/en/integrations/gcs',
@@ -1177,8 +1182,10 @@ const config = {
11771182
from: '/en/introduction/possible_silly_questions',
11781183
to: '/knowledgebase',
11791184
},
1180-
{ from: '/en/getting_started',
1181-
to: '/en/getting-started/quick-start' },
1185+
{
1186+
from: '/en/getting_started',
1187+
to: '/en/getting-started/quick-start'
1188+
},
11821189
{
11831190
from: '/en/guides/ingest/tab_separated_values',
11841191
to: '/en/getting-started/example-datasets/nypd_complaint_data',
@@ -2284,15 +2291,15 @@ const config = {
22842291
from: '/knowledgebase/troubleshooting',
22852292
to: '/en/faq/troubleshooting'
22862293
},
2287-
{
2294+
{
22882295
from: '/en/single',
22892296
to: '/en/sql-reference/statements/create/view'
22902297
},
2291-
{
2298+
{
22922299
from: '/en/architecture/single-node-deployment',
22932300
to: '/en/install'
22942301
},
2295-
{
2302+
{
22962303
from: '/en/home',
22972304
to: '/'
22982305
}

0 commit comments

Comments
 (0)