commit | 0e5bd61c392b0db9e37b8712d67f6806fa1f770b | [log] [tgz] |
---|---|---|
author | Nick Vatamaniuc <vatamane@apache.org> | Sat Sep 24 00:57:05 2022 -0400 |
committer | Nick Vatamaniuc <vatamane@apache.org> | Sat Sep 24 11:44:02 2022 -0400 |
tree | d5269d866e62da548d2e7013b4f8d125b4b0fde8 | |
parent | 595aef6d47fc51d72fb516ad3ca82d6aa72ffc95 [diff] |
Fix the documentation download links The download page was missing the version part of the template. Use the RTD version environment variable [1] https://docs.readthedocs.io/en/stable/environment-variables.html?highlight=github_version#envvar-READTHEDOCS_VERSION
diff --git a/src/docs/src/conf.py b/src/docs/src/conf.py index 01f197b..2c84f61 100644 --- a/src/docs/src/conf.py +++ b/src/docs/src/conf.py
@@ -74,6 +74,7 @@ "conf_py_path": "/src/docs/src/", "github_user": "apache", "github_repo": "couchdb", + "rtd_ver": os.environ.get("READTHEDOCS_VERSION_NAME") or "latest", } text_newlines = "native"
diff --git a/src/docs/templates/pages/download.html b/src/docs/templates/pages/download.html index 481ec9f..b78f479 100644 --- a/src/docs/templates/pages/download.html +++ b/src/docs/templates/pages/download.html
@@ -16,11 +16,6 @@ {% extends "layout.html" %} {% set title = 'Download' %} {% set url = 'https://media.readthedocs.org/%s/couchdb/%s/couchdb.%s' %} -{% if git_branch == 'main' %} - {% set rtd_ver = 'latest' %} -{% else %} - {% set rtd_ver = git_branch %} -{% endif %} {% block body %} <h1>Download Apache CouchDB™ {{ release }} Documentation</h1>