Skip to content

Commit

Permalink
Merge pull request #5549 from Xuanwo/fix-docs
Browse files Browse the repository at this point in the history
docs: Fix sidebar is missing
  • Loading branch information
BohuTANG authored May 24, 2022
2 parents 7b96809 + 4cc862e commit dd478e1
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

1 comment on commit dd478e1

@vercel
Copy link

@vercel vercel bot commented on dd478e1 May 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

databend – ./

databend-databend.vercel.app
databend-git-main-databend.vercel.app
databend.rs
databend.vercel.app

Please sign in to comment.