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:
ArthurHoaro 2021-05-13 11:36:37 +02:00
parent 6225cc9c86
commit e660450a2b
2 changed files with 3 additions and 3 deletions

View file

@ -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 %}

View file

@ -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