mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-11-29 18:48:14 +08:00
* Added file structure docs for sidebar * More specificity added Co-authored-by: Anix <anik220798@gmail.com> * More specificity added Co-authored-by: Anix <anik220798@gmail.com> Co-authored-by: Anix <anik220798@gmail.com>
This commit is contained in:
parent
2a52460a59
commit
0268594f90
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user