From 4cc862e2a16bf9c34f17537a3531b3629794c55c Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Tue, 24 May 2022 13:24:53 +0800 Subject: [PATCH] docs: Fix sidebar is missing Signed-off-by: Xuanwo --- docs/dev/sidebars.js | 2 +- docs/doc/00-overview/_category_.json | 8 +++-- docs/doc/00-overview/index.md | 2 +- docs/doc/sidebars.js | 2 +- website/docusaurus.config.js | 46 ++++++++++++++-------------- 5 files changed, 32 insertions(+), 28 deletions(-) diff --git a/docs/dev/sidebars.js b/docs/dev/sidebars.js index bd82e61759da..074ce412025a 100644 --- a/docs/dev/sidebars.js +++ b/docs/dev/sidebars.js @@ -2,7 +2,7 @@ /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ const sidebars = { - docs: [{type: 'autogenerated', dirName: '.'}], + dev: [{type: 'autogenerated', dirName: '.'}], }; module.exports = sidebars; diff --git a/docs/doc/00-overview/_category_.json b/docs/doc/00-overview/_category_.json index 10262393f3d6..38b0ceb839ae 100644 --- a/docs/doc/00-overview/_category_.json +++ b/docs/doc/00-overview/_category_.json @@ -1,3 +1,7 @@ { - "label": "Overview" -} \ No newline at end of file + "label": "Overview", + "link": { + "type": "generated-index", + "slug": "/" + } +} diff --git a/docs/doc/00-overview/index.md b/docs/doc/00-overview/index.md index b99aaf40f08d..a220a970b4bf 100644 --- a/docs/doc/00-overview/index.md +++ b/docs/doc/00-overview/index.md @@ -1,6 +1,6 @@ --- title: What is Databend? -slug: ../ +slug: / --- Databend is an open-source **Elastic** and **Workload-Aware** Modern Cloud Data Warehouse. diff --git a/docs/doc/sidebars.js b/docs/doc/sidebars.js index bd82e61759da..c7c5d3fac226 100644 --- a/docs/doc/sidebars.js +++ b/docs/doc/sidebars.js @@ -2,7 +2,7 @@ /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ const sidebars = { - docs: [{type: 'autogenerated', dirName: '.'}], + doc: [{type: 'autogenerated', dirName: '.'}], }; module.exports = sidebars; diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index d98f31574632..5132a4e6ad45 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -56,8 +56,8 @@ const config = { priority: 0.5, }, gtag: { - trackingID: 'G-WBQPTTG4ZG', - anonymizeIP: true, + trackingID: 'G-WBQPTTG4ZG', + anonymizeIP: true, }, }), ], @@ -92,27 +92,27 @@ const config = { src: 'img/favicon.svg', }, items: [ - { - to: '/doc', - label: 'Documentation', - position: 'right', - }, - { - to: '/doc/contributing/good-pr', - label: 'Contributing', - position: 'right', - }, - { - href: 'https://perf.databend.rs', - label: 'Benchmarking', - position: 'right', - }, - {to: '/blog', label: 'Blog', position: 'right'}, // or position: 'right' - { - href: 'https://github.com/datafuselabs/databend', - label: 'GitHub', - position: 'right', - }, + { + to: '/doc', + label: 'Documentation', + position: 'right', + }, + { + to: '/doc/contributing/good-pr', + label: 'Contributing', + position: 'right', + }, + { + href: 'https://perf.databend.rs', + label: 'Benchmarking', + position: 'right', + }, + {to: '/blog', label: 'Blog', position: 'right'}, // or position: 'right' + { + href: 'https://github.com/datafuselabs/databend', + label: 'GitHub', + position: 'right', + }, { type: 'localeDropdown', position: 'right',