From ae37b3874df7e636cef5a58d7512ca02c116f4d4 Mon Sep 17 00:00:00 2001 From: Michael Currin <18750745+MichaelCurrin@users.noreply.github.com> Date: Thu, 15 Oct 2020 10:54:27 +0200 Subject: [PATCH] docs: Update advanced.md --- docs/tutorial/advanced.md | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/docs/tutorial/advanced.md b/docs/tutorial/advanced.md index a3a4bda..fe6b926 100644 --- a/docs/tutorial/advanced.md +++ b/docs/tutorial/advanced.md @@ -10,24 +10,14 @@ You can add an additional level to your navbar like this: ```yaml nav: - - Home: index.md - - About: about.md - - Foo: - - Overview: foo/index.md - - Bar: foo/bar.md + - Home: index.md + - About: about.md + - Foo: + - Overview: foo/index.md + - Bar: foo/bar.md ``` -However, adding a path when nesting as below is **invalid** and will give an error: - -```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). +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). ## Add config options