Fix documentation build
- pages parameters has been deprecated and renamed by nav - the build fails with an empty extra_css array
This commit is contained in:
parent
6225cc9c86
commit
e660450a2b
2 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
{#
|
||||
The entry point for the ReadTheDocs Theme.
|
||||
|
||||
|
||||
Any theme customisations should override this file to redefine blocks defined in
|
||||
the various templates. The custom theme should only need to define a main.html
|
||||
which `{% extends "base.html" %}` and defines various blocks which will replace
|
||||
|
@ -14,7 +14,7 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
{%- if 'media.readthedocs.org' not in config.extra_css[0] %}
|
||||
{%- if config.extra_css|length and 'media.readthedocs.org' not in config.extra_css[0] %}
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
{%- endif %}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ site_dir: doc/html
|
|||
# - https://github.com/rtfd/readthedocs.org/issues/4314
|
||||
# strict: true
|
||||
|
||||
pages:
|
||||
nav:
|
||||
- Home: index.md
|
||||
- Setup:
|
||||
- Server configuration: Server-configuration.md
|
||||
|
|
Loading…
Reference in a new issue