diff --git a/docs/_templates/breadcrumbs.html b/docs/_templates/breadcrumbs.html new file mode 100644 index 00000000000..2e132b7f8f6 --- /dev/null +++ b/docs/_templates/breadcrumbs.html @@ -0,0 +1,86 @@ +{%- if meta is defined and meta is not none %} + {%- set check_meta = True %} +{%- else %} + {%- set check_meta = False %} +{%- endif %} + +{%- if check_meta and 'github_url' in meta %} + {%- set display_github = True %} +{%- endif %} + +{%- if check_meta and 'bitbucket_url' in meta %} + {%- set display_bitbucket = True %} +{%- endif %} + +{%- if check_meta and 'gitlab_url' in meta %} + {%- set display_gitlab = True %} +{%- endif %} + +{%- set display_vcs_links = display_vcs_links if display_vcs_links is defined else True %} + +{#- Translators: This is an ARIA section label for page links, including previous/next page link and links to GitHub/GitLab/etc. -#} +
diff --git a/docs/conf.py b/docs/conf.py index a79065a0f37..7e8d854f8a4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -70,7 +70,7 @@ ogp_enable_meta_description = True ogp_description_length = 300 -templates_path = ["_templates"] +templates_path = [os.path.join(os.path.dirname(__file__), "_templates")] # This may be elevated as a general issue for documentation and behavioral # change to the Sphinx build: