mirror of
https://github.com/MichaelCurrin/mkdocs-quickstart.git
synced 2026-08-12 11:53:01 +02:00
docs: Update advanced.md
This commit is contained in:
@@ -10,24 +10,14 @@ You can add an additional level to your navbar like this:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
nav:
|
nav:
|
||||||
- Home: index.md
|
- Home: index.md
|
||||||
- About: about.md
|
- About: about.md
|
||||||
- Foo:
|
- Foo:
|
||||||
- Overview: foo/index.md
|
- Overview: foo/index.md
|
||||||
- Bar: foo/bar.md
|
- Bar: foo/bar.md
|
||||||
```
|
```
|
||||||
|
|
||||||
However, adding a path when nesting as below is **invalid** and will give an error:
|
The value can either be a string (as in the first case) or a map (as in the last case). This seems to be a YAML limitation but see also [issue #1139](https://github.com/mkdocs/mkdocs/issues/1139).
|
||||||
|
|
||||||
```yaml
|
|
||||||
nav:
|
|
||||||
- Home: index.md
|
|
||||||
- About: about.md
|
|
||||||
- Foo: foo/index.md
|
|
||||||
- Bar: foo/bar.md
|
|
||||||
```
|
|
||||||
|
|
||||||
See [issue #1139](https://github.com/mkdocs/mkdocs/issues/1139).
|
|
||||||
|
|
||||||
|
|
||||||
## Add config options
|
## Add config options
|
||||||
|
|||||||
Reference in New Issue
Block a user