Skip to content

Commit

Permalink
docs: Fix sidebar is missing
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo committed May 24, 2022
1 parent 7b96809 commit 4cc862e
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 28 deletions.
2 changes: 1 addition & 1 deletion docs/dev/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
docs: [{type: 'autogenerated', dirName: '.'}],
dev: [{type: 'autogenerated', dirName: '.'}],
};

module.exports = sidebars;
8 changes: 6 additions & 2 deletions docs/doc/00-overview/_category_.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"label": "Overview"
}
"label": "Overview",
"link": {
"type": "generated-index",
"slug": "/"
}
}
2 changes: 1 addition & 1 deletion docs/doc/00-overview/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: What is Databend?
slug: ../
slug: /
---

Databend is an open-source **Elastic** and **Workload-Aware** Modern Cloud Data Warehouse.
Expand Down
2 changes: 1 addition & 1 deletion docs/doc/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
docs: [{type: 'autogenerated', dirName: '.'}],
doc: [{type: 'autogenerated', dirName: '.'}],
};

module.exports = sidebars;
46 changes: 23 additions & 23 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ const config = {
priority: 0.5,
},
gtag: {
trackingID: 'G-WBQPTTG4ZG',
anonymizeIP: true,
trackingID: 'G-WBQPTTG4ZG',
anonymizeIP: true,
},
}),
],
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 4cc862e

Please sign in to comment.