mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Update doc versions, remove 0.9.5 doc links
This commit is contained in:
parent
d3067d34c9
commit
798e5d8ff4
7 changed files with 48 additions and 22 deletions
|
|
@ -20,7 +20,7 @@ author = "The Evennia developer community"
|
|||
|
||||
# The full Evennia version covered by these docs, including alpha/beta/rc tags
|
||||
# This will be used for multi-version selection options.
|
||||
release = "1.0"
|
||||
release = "2.x"
|
||||
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
|
@ -54,7 +54,7 @@ html_static_path = ["_static"]
|
|||
# which branches to include in multi-versioned docs
|
||||
# smv_branch_whitelist = r"^develop$|^v[0-9\.]+?$"
|
||||
# smv_branch_whitelist = r"^develop$|^master$|^v1.0$"
|
||||
smv_branch_whitelist = r"^develop$|^main$"
|
||||
smv_branch_whitelist = r"^main$"
|
||||
smv_outputdir_format = "{config.release}"
|
||||
# don't make docs for tags
|
||||
smv_tag_whitelist = r"^$"
|
||||
|
|
@ -62,15 +62,15 @@ smv_tag_whitelist = r"^$"
|
|||
# used to fill in versioning.html links for versions that are not actually built.
|
||||
# These are also read from the deploy.py script. These are also the names of
|
||||
# the folders built in the gh-pages evennia branch, under docs/.
|
||||
latest_version = "1.0"
|
||||
legacy_versions = ["0.9.5"]
|
||||
latest_version = "2.x"
|
||||
legacy_versions = ["1.3.0", "0.9.5"]
|
||||
|
||||
|
||||
def add_legacy_versions_to_html_page_context(app, pagename, templatename, context, doctree):
|
||||
# this is read by versioning.html template (sidebar)
|
||||
LVersion = namedtuple("legacy_version", ["release", "name", "url"])
|
||||
context["legacy_versions"] = [
|
||||
LVersion(release=f"{vers}", name=f"v{vers}", url=f"../{vers}/index.html")
|
||||
LVersion(release=f"{vers}", name=f"v{vers}", url=f"../../{vers}/index.html")
|
||||
for vers in legacy_versions
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue