diff --git a/conf.py b/conf.py index 2ce75c10..032dcb6b 100644 --- a/conf.py +++ b/conf.py @@ -93,6 +93,10 @@ ] linkcheck_anchors_ignore_for_url.extend(custom_linkcheck_anchors_ignore_for_url) +# Tags cannot be added directly in custom_conf.py, so add them here +for tag in custom_tags: + tags.add(tag) + ############################################################ ### Styling ############################################################ diff --git a/custom_conf.py b/custom_conf.py index 024d8bd2..94c90112 100644 --- a/custom_conf.py +++ b/custom_conf.py @@ -141,6 +141,10 @@ # You can disable it by setting the following configuration to True. disable_feedback_button = False +# Add tags that you want to use for conditional inclusion of text +# (https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#tags) +custom_tags = [] + ############################################################ ### Additional configuration ############################################################