From fc566901278ea3ababaefe71477f6e5dd8969592 Mon Sep 17 00:00:00 2001 From: niksirbi Date: Fri, 10 Nov 2023 17:52:07 +0000 Subject: [PATCH] sphinx ignore missing anchors during linkcheck --- docs/requirements.txt | 2 +- docs/source/conf.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index b5a754c..7280978 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -3,5 +3,5 @@ myst-parser nbsphinx pydata-sphinx-theme setuptools-scm -sphinx +sphinx>=7.1 sphinx-autodoc-typehints diff --git a/docs/source/conf.py b/docs/source/conf.py index 1b92288..7e636f3 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -83,12 +83,18 @@ "**/includes/**", ] +# Don't check the anchors for the following URLs during linkcheck +linkcheck_anchors_ignore_for_url = [ + "https://github.com/pypa/setuptools_scm/", + "https://gin.g-node.org/G-Node/Info/wiki/", +] + # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output html_theme = "pydata_sphinx_theme" html_title = "wazp" -# Cutomize the theme +# Customize the theme html_theme_options = { "icon_links": [ {