Skip to content

Commit 2986aca

Browse files
committed
Documentation
1 parent 14b55c2 commit 2986aca

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

docs/setup/setting-up-navigation.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ are rebound automatically, i.e., __Material for MkDocs now behaves like a Single
3131
Page Application__. Now, the search index survives navigation, which is
3232
especially useful for large documentation sites.
3333
34+
!!! info "The [`site_url`][mkdocs.site_url] setting must be set"
35+
36+
Note that you must set [`site_url`][mkdocs.site_url] when using instant
37+
navigation, as instant navigation relies on the generated `sitemap.xml`
38+
which will be empty if this setting is omitted. Example:
39+
40+
``` yaml
41+
site_url: https://example.com
42+
```
43+
3444
[XHR]: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest
3545

3646
#### Instant prefetching
@@ -108,6 +118,16 @@ theme:
108118
- navigation.instant.preview
109119
```
110120

121+
!!! info "The [`site_url`][mkdocs.site_url] setting must be set"
122+
123+
Note that you must set [`site_url`][mkdocs.site_url] when using instant
124+
previews, as instant previews rely on the generated `sitemap.xml`
125+
which will be empty if this setting is omitted. Example:
126+
127+
``` yaml
128+
site_url: https://example.com
129+
```
130+
111131
### Anchor tracking
112132

113133
<!-- md:version 8.0.0 -->

includes/mkdocs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[mkdocs.env]: https://www.mkdocs.org/user-guide/configuration/#environment-variables
55
[mkdocs.docs_dir]: https://www.mkdocs.org/user-guide/configuration/#docs_dir
66
[mkdocs.site_dir]: https://www.mkdocs.org/user-guide/configuration/#site_dir
7+
[mkdocs.site_url]: https://www.mkdocs.org/user-guide/configuration/#site_url
78
[mkdocs.site_description]: https://www.mkdocs.org/user-guide/configuration/#site_description
89
[mkdocs.nav]: https://www.mkdocs.org/user-guide/configuration/#nav
910
[mkdocs.plugins]: https://www.mkdocs.org/user-guide/configuration/#plugins

0 commit comments

Comments
 (0)