From 0268594f90b33ffb1f9547fa27c5b2a3ceaf59ca Mon Sep 17 00:00:00 2001 From: Anirudh Emmadi Date: Tue, 7 Jul 2020 00:30:19 -0500 Subject: [PATCH] docs: added file structure docs for sidebar (fixes #1083) (#1261) * Added file structure docs for sidebar * More specificity added Co-authored-by: Anix * More specificity added Co-authored-by: Anix Co-authored-by: Anix --- docs/more-pages.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/more-pages.md b/docs/more-pages.md index d200bc7..429eaf9 100644 --- a/docs/more-pages.md +++ b/docs/more-pages.md @@ -51,6 +51,18 @@ Create the `_sidebar.md`: You need to create a `.nojekyll` in `./docs` to prevent GitHub Pages from ignoring files that begin with an underscore. +!> Docsify only looks for `_sidebar.md` in the current folder, and uses that, otherwise it falls back to the one configured using `window.$docsify.loadSidebar` config. + +Example file structure: + +```text +└── docs/ + ├── _sidebar.md + ├── index.md + ├── getting-started.md + └── running-services.md +``` + ## Nested Sidebars You may want the sidebar to update with only navigation to reflect the current directory. This can be done by adding a `_sidebar.md` file to each folder.