diff options
| author | EuAndreh <eu@euandre.org> | 2020-10-03 11:24:58 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2020-10-03 11:24:58 -0300 |
| commit | 0f972d354fd33b2bbb675c0755b17fb0f67d92e5 (patch) | |
| tree | 173ef415d2d0514203f84851e8a0b43ce1d16c95 | |
| parent | fake-symlinks: Rename macro in preamble.org s/tasks/task/ (diff) | |
| download | dotfiles-0f972d354fd33b2bbb675c0755b17fb0f67d92e5.tar.gz dotfiles-0f972d354fd33b2bbb675c0755b17fb0f67d92e5.tar.xz | |
fake-symlinks: Fix links in Sphinx documentation
| -rw-r--r-- | bash/templates/breadcrumbs.html | 2 | ||||
| -rw-r--r-- | bash/templates/conf.py | 4 | ||||
| -rw-r--r-- | bash/templates/layout.html | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/bash/templates/breadcrumbs.html b/bash/templates/breadcrumbs.html index b0133fdd..6190a1a6 100644 --- a/bash/templates/breadcrumbs.html +++ b/bash/templates/breadcrumbs.html @@ -2,7 +2,7 @@ {% block breadcrumbs_aside %} <li class="wy-breadcrumbs-aside"> - <a href="{{ sourcehut_url_prefix }}/{{ pagename }}.rst" class="fa fa-git"> + <a href="{{ cgit_url_prefix }}/{{ pagename }}.rst" class="fa fa-git"> View source </a> </li> diff --git a/bash/templates/conf.py b/bash/templates/conf.py index b6e8f84d..24d7c384 100644 --- a/bash/templates/conf.py +++ b/bash/templates/conf.py @@ -46,8 +46,8 @@ html_context = { "all_versions": all_versions, "langs": metadata["langs"], "current_lang": metadata["current_lang"], - "sourcehut_url_prefix": "https://git.euandreh.xyz/songbooks/tree/master/docs", - "gitlab_url_prefix": "https://gitlab.com/EuAndreh/songbooks/-/blob/master/docs", + "cgit_url_prefix": "https://git.euandreh.xyz/$PROJECT/tree/docs", + "gitlab_url_prefix": "https://gitlab.com/EuAndreh/$PROJECT/-/blob/master/docs", "i18n_pagenames": i18n_pagenames } diff --git a/bash/templates/layout.html b/bash/templates/layout.html index 51323733..3182c8cf 100644 --- a/bash/templates/layout.html +++ b/bash/templates/layout.html @@ -44,12 +44,12 @@ https://github.com/readthedocs/sphinx_rtd_theme/blob/1d856256676d2b801a12c30e4a8 {% endfor %} <dt>Downloads</dt> <dd> - <a href="/{{ version }}/$PROJECT_UC.pdf"> + <a href="/{{ current_lang }}/{{ version }}/$PROJECT_UC.pdf"> PDF </a> </dd> <dd> - <a href="/{{ version }}/$PROJECT_UC.epub"> + <a href="/{{ current_lang }}/{{ version }}/$PROJECT_UC.epub"> EPUB </a> </dd> |
