mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use the checkout major version as the latest release
This commit is contained in:
parent
2ebb741ae8
commit
44ca6f6e69
1 changed files with 10 additions and 7 deletions
17
doc/conf.py
17
doc/conf.py
|
@ -42,17 +42,20 @@ intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
|
|||
on_saltstack = "SALT_ON_SALTSTACK" in os.environ
|
||||
|
||||
project = "Salt"
|
||||
repo_primary_branch = (
|
||||
"master" # This is the default branch on GitHub for the Salt project
|
||||
)
|
||||
version = salt.version.__version__
|
||||
latest_release = os.environ.get("LATEST_RELEASE", "3002.5") # latest release (2019.2.3)
|
||||
# This is the default branch on GitHub for the Salt project
|
||||
repo_primary_branch = "master"
|
||||
latest_release = (
|
||||
os.environ.get("LATEST_RELEASE")
|
||||
or
|
||||
# The next unreleased version
|
||||
str(salt.version.__saltstack_version__.major)
|
||||
) # latest release (3003)
|
||||
previous_release = os.environ.get(
|
||||
"PREVIOUS_RELEASE", "previous_release"
|
||||
) # latest release from previous branch (2018.3.5)
|
||||
) # latest release from previous branch (3002.5)
|
||||
previous_release_dir = os.environ.get(
|
||||
"PREVIOUS_RELEASE_DIR", "previous_release_dir"
|
||||
) # path on web server for previous branch (2018.3)
|
||||
) # path on web server for previous branch (3002.5)
|
||||
next_release = "" # next release
|
||||
next_release_dir = "" # path on web server for next release branch
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue