Skip to content

Commit

Permalink
switch to autogenerated sidebars and new directory structure (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaheshAravind authored Jul 31, 2023
1 parent bb2cfa5 commit f528702
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 31 deletions.
4 changes: 2 additions & 2 deletions docs/hummingbird.md → docs/01-Introduction/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: hummingbird
title: hummingbird
sidebar_label: hummingbird
sidebar_label: Introduction
---
# What is hummingbird?

Expand All @@ -25,4 +25,4 @@ There are few challenges in standardising infra and automating this task
* the control plane can change at any given time. For instance client may change cloud provider, or move from managed to self-managed service.
* Some services which we want to deploy are not wanted in the project or may already exist in the project.

`hummingbird` is designed keeping all of this in mind. Read about how [here](getting-started/architecture)
`hummingbird` is designed keeping all of this in mind. Read about how [here](/docs/04-Architecture)
1 change: 1 addition & 0 deletions docs/02-Before you get started/01-pre-requisites.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Prerequisites
1 change: 1 addition & 0 deletions docs/02-Before you get started/02-versions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Running control plane in minikube
1 change: 1 addition & 0 deletions docs/03-Getting started/02-running-charts-in-local.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Running charts in local
1 change: 1 addition & 0 deletions docs/03-Getting started/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Getting started
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
id: architecture
title: Architecture
sidebar_label: Architecture
---
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ const config = {
items: [
{
label: "About",
to: "docs/hummingbird",
to: "docs/Introduction",
position: "right",
},
{
label: "Getting Started",
to: "docs/getting-started/architecture",
to: "docs/Getting Started",
position: "right",
},
// {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 6 additions & 25 deletions sidebars.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,10 @@
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/

// @ts-check

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
docs: {
Introduction: ["hummingbird", "tech-decisions"],
"Getting Started": ["getting-started/architecture"],
// Tutorial: ["tutorial/tutorial"],
"Get Involved": [
"get-involved/suggest-feature",
// "get-involved/contribute",
"get-involved/roadmap",
// "get-involved/faq",
],
},
autoGeneratedSidebar: [
{
type: 'autogenerated',
dirName: '.',
},
]
};

module.exports = sidebars;

0 comments on commit f528702

Please sign in to comment.