Skip to content

Commit ac48bcb

Browse files
committed
fix mobile menu + unify sidebar
1 parent 11b5a6b commit ac48bcb

File tree

18 files changed

+460
-938
lines changed

18 files changed

+460
-938
lines changed

docusaurus.config.js

Lines changed: 1 addition & 234 deletions
Original file line numberDiff line numberDiff line change
@@ -198,65 +198,7 @@ const config = {
198198
href: 'https://clickhouse.com/',
199199
},
200200
items: [
201-
{
202-
type: 'dropdown',
203-
label: 'Product',
204-
hoverable: 'true',
205-
className: 'ch-menu',
206-
position: 'left',
207-
items: [
208-
{
209-
label: 'ClickHouse',
210-
to: 'https://clickhouse.com/clickhouse',
211-
},
212-
{
213-
label: 'ClickHouse Cloud',
214-
to: 'https://clickhouse.com/cloud',
215-
},
216-
],
217-
},
218201

219-
{
220-
type: 'dropdown',
221-
hoverable: 'true',
222-
label: 'Resources',
223-
className: 'ch-menu',
224-
position: 'left',
225-
items: [
226-
{
227-
to: '/docs/',
228-
label: 'Docs',
229-
},
230-
{
231-
label: 'ClickHouse Academy',
232-
to: 'https://clickhouse.com/learn',
233-
},
234-
{
235-
label: 'Upcoming training',
236-
to: 'https://clickhouse.com/company/news-events',
237-
},
238-
{
239-
label: 'Blog',
240-
to: 'https://clickhouse.com/blog',
241-
},
242-
{
243-
label: 'Support Program',
244-
to: 'https://clickhouse.com/support/program',
245-
},
246-
],
247-
},
248-
{
249-
position: 'left',
250-
label: 'Use Cases',
251-
className: 'ch-menu',
252-
to: 'https://clickhouse.com/customer-stories',
253-
},
254-
{
255-
position: 'left',
256-
label: 'Pricing',
257-
className: 'ch-menu',
258-
to: 'https://clickhouse.com/pricing',
259-
},
260202
],
261203
},
262204
footer: {
@@ -2411,182 +2353,7 @@ const config = {
24112353
],
24122354
customFields: {
24132355
blogSidebarLink: '/docs/knowledgebase',
2414-
galaxyApiEndpoint: process.env.NEXT_PUBLIC_GALAXY_API_ENDPOINT || 'http://localhost:3000',
2415-
secondaryNavItems: [
2416-
{
2417-
type: 'docSidebar',
2418-
label: 'Docs',
2419-
className: 'ch-menu',
2420-
position: 'left',
2421-
to: '/docs',
2422-
sidebarId: 'docs',
2423-
},
2424-
{
2425-
type: 'docSidebar',
2426-
label: 'Cloud',
2427-
sidebarId: 'cloud',
2428-
className: 'ch-menu',
2429-
position: 'left',
2430-
to: '/docs/en/cloud/index',
2431-
},
2432-
{
2433-
type: 'docSidebar',
2434-
label: 'SQL Reference',
2435-
sidebarId: 'sqlreference',
2436-
className: 'ch-menu',
2437-
position: 'left',
2438-
to: '/docs/en/sql-reference',
2439-
},
2440-
{
2441-
type: 'docSidebar',
2442-
label: 'chDB',
2443-
sidebarId: 'chdb',
2444-
className: 'ch-menu',
2445-
position: 'left',
2446-
to: '/docs/en/chdb',
2447-
},
2448-
{
2449-
type: 'docSidebar',
2450-
label: 'Data Types',
2451-
sidebarId: 'dataTypes',
2452-
className: 'ch-menu',
2453-
position: 'left',
2454-
to: "en/interfaces/cli",
2455-
},
2456-
{
2457-
type: 'docSidebar',
2458-
label: 'Interfaces',
2459-
sidebarId: 'interfaces',
2460-
className: 'ch-menu',
2461-
position: 'left',
2462-
to: "en/interfaces/cli",
2463-
},
2464-
{
2465-
type: 'docSidebar',
2466-
label: 'Development and Contributing',
2467-
sidebarId: 'developmentAndContributing',
2468-
className: 'ch-menu',
2469-
position: 'left',
2470-
to: "en/development/adding_test_queries",
2471-
},
2472-
{
2473-
type: 'docSidebar',
2474-
label: 'Tools and Utilities',
2475-
sidebarId: 'toolsAndUtilities',
2476-
className: 'ch-menu',
2477-
position: 'left',
2478-
to: "en/operations/utilities/backupview",
2479-
},
2480-
{
2481-
type: 'docSidebar',
2482-
label: 'Syntax',
2483-
sidebarId: 'syntax',
2484-
className: 'ch-menu',
2485-
position: 'left',
2486-
to: 'en/sql-reference/ansi',
2487-
},
2488-
{
2489-
type: 'docSidebar',
2490-
label: 'Table and Database Engines',
2491-
sidebarId: 'tableAndDatabaseEngines',
2492-
className: 'ch-menu',
2493-
position: 'left',
2494-
to: 'en/engines/database-engines/atomic',
2495-
},
2496-
{
2497-
type: 'docSidebar',
2498-
label: 'Datasets',
2499-
sidebarId: 'datasets',
2500-
className: 'ch-menu',
2501-
position: 'left',
2502-
to: 'en/getting-started/example-datasets',
2503-
},
2504-
{
2505-
type: 'docSidebar',
2506-
label: 'System Tables',
2507-
sidebarId: 'systemTables',
2508-
className: 'ch-menu',
2509-
position: 'left',
2510-
to: '/docs/en/operations/system-tables/asynchronous_insert_log',
2511-
},
2512-
{
2513-
type: 'docSidebar',
2514-
label: 'Performance and Optimization',
2515-
sidebarId: 'performanceAndOptimization',
2516-
className: 'ch-menu',
2517-
position: 'left',
2518-
to: "en/optimize/asynchronous-inserts",
2519-
},
2520-
{
2521-
type: 'docSidebar',
2522-
label: 'Concepts',
2523-
sidebarId: 'concepts',
2524-
className: 'ch-menu',
2525-
position: 'left',
2526-
to: "en/operations/analyzer",
2527-
},
2528-
{
2529-
type: 'docSidebar',
2530-
label: 'Getting Started',
2531-
sidebarId: 'gettingStarted',
2532-
className: 'ch-menu',
2533-
position: 'left',
2534-
to: "en/quick-start",
2535-
},
2536-
{
2537-
type: 'docSidebar',
2538-
label: 'Security and Authentication',
2539-
sidebarId: 'securityAndAuth',
2540-
className: 'ch-menu',
2541-
position: 'left',
2542-
to: "en/operations/external-authenticators",
2543-
},
2544-
{
2545-
type: 'docSidebar',
2546-
label: 'Statements',
2547-
sidebarId: 'statements',
2548-
className: 'ch-menu',
2549-
position: 'left',
2550-
to: "en/sql-reference/statements/alter/apply-deleted-mask",
2551-
},
2552-
{
2553-
type: 'docSidebar',
2554-
label: 'Settings',
2555-
sidebarId: 'settings',
2556-
className: 'ch-menu',
2557-
position: 'left',
2558-
to: '/docs/en/operations/settings/index',
2559-
},
2560-
{
2561-
label: 'Knowledge Base',
2562-
className: 'ch-menu',
2563-
position: 'left',
2564-
to: 'knowledgebase',
2565-
},
2566-
{
2567-
type: 'dropdown',
2568-
hoverable: 'false',
2569-
html:
2570-
'<svg width="14" height="13" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n' +
2571-
'<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' +
2572-
'</svg>',
2573-
position: 'right',
2574-
items: [
2575-
{
2576-
label: 'English',
2577-
to: '/',
2578-
},
2579-
{
2580-
label: 'Russian',
2581-
to: '/ru',
2582-
},
2583-
{
2584-
label: 'Chinese',
2585-
to: '/zh',
2586-
},
2587-
],
2588-
},
2589-
],
2356+
galaxyApiEndpoint: process.env.NEXT_PUBLIC_GALAXY_API_ENDPOINT || 'http://localhost:3000'
25902357
},
25912358
}
25922359

plugins/menuItems.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,23 @@
1818
"icon": "https://clickhouse.com/cloud.svg"
1919
},
2020
{
21-
"id": 1,
21+
"id": 2,
22+
"name": "Bring Your Own Cloud",
23+
"description": "A fully managed ClickHouse Cloud service, deployed in your own AWS account.",
24+
"href": "/cloud/bring-your-own-cloud",
25+
"target": "_self",
26+
"icon": "https://clickhouse.com/cloud_byoc.svg"
27+
},
28+
{
29+
"id": 3,
2230
"name": "ClickHouse",
2331
"description": "Spin up a database server with open-source ClickHouse.",
2432
"href": "/clickhouse",
2533
"target": "_self",
2634
"icon": "https://clickhouse.com/drive.svg"
2735
},
2836
{
29-
"id": 3,
37+
"id": 4,
3038
"name": "View 100+ integrations",
3139
"href": "/integrations",
3240
"target": "_self"

0 commit comments

Comments
 (0)