From 185e2607e50dfa31b187e3ab69831b7db07a5d24 Mon Sep 17 00:00:00 2001 From: Varac <varac@varac.net> Date: Mon, 16 Aug 2021 20:21:27 +0200 Subject: [PATCH] Suppress autosectionlabel extension warnings --- docs/README.md | 2 +- docs/conf.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index 20e320f26..75703f960 100644 --- a/docs/README.md +++ b/docs/README.md @@ -9,4 +9,4 @@ documentation, using Sphinx: Then point your browser to the newly generated pages: - firefox _build/html/index.html + xdg-open file://$PWD/_build/html/index.html diff --git a/docs/conf.py b/docs/conf.py index ad6133c98..0848dcf60 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -59,3 +59,10 @@ html_static_path = ['_static'] # Readthedocs.io needs us to tell it what the index file is. This defaults to # 'contents' master_doc = 'index' + +# Suppress autosectionlabel extension warnings about duplicate labels, i.e. +# +# docs/usage.rst:105: WARNING: duplicate label wordpress, other instance in docs/testing.rst +# +# https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-suppress_warnings +suppress_warnings = ['autosectionlabel.*'] -- GitLab