diff --git a/docs/requirements.txt b/docs/requirements.txt index ee18c40..efe63e9 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -58,3 +58,5 @@ urllib3==1.26.9 # via requests myst_parser==4.0.0 + +sphinxcontrib-googleanalytics==0.4 diff --git a/docs/source/_templates/breadcrumbs.html b/docs/source/_templates/breadcrumbs.html new file mode 100644 index 0000000..9d3af66 --- /dev/null +++ b/docs/source/_templates/breadcrumbs.html @@ -0,0 +1,53 @@ +{%- 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. -#} +
+ + + {%- if (theme_prev_next_buttons_location == 'top' or theme_prev_next_buttons_location == 'both') and (next or prev) %} + {#- Translators: This is an ARIA section label for sequential page links, such as previous and next page links. -#} + + {%- endif %} +
+
diff --git a/docs/source/_templates/layout.html b/docs/source/_templates/layout.html index d4941fd..ec670b8 100644 --- a/docs/source/_templates/layout.html +++ b/docs/source/_templates/layout.html @@ -1,6 +1,17 @@ {%- extends "!layout.html" %} {%- block extrabody %} +