Skip to content

Commit

Permalink
Fix the documentation download links
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nickva committed Sep 24, 2022
1 parent 595aef6 commit 0e5bd61
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions src/docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 0 additions & 5 deletions src/docs/templates/pages/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 0e5bd61

Please sign in to comment.