From bbae01d9379985ed8e628f28e19c31614b8f0b50 Mon Sep 17 00:00:00 2001 From: Griatch Date: Wed, 20 Dec 2023 19:13:39 +0100 Subject: [PATCH] Restructure doc versions --- docs/deploy.py | 3 +-- docs/source/conf.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/deploy.py b/docs/deploy.py index 176380b55d..5edaafd6d5 100644 --- a/docs/deploy.py +++ b/docs/deploy.py @@ -68,8 +68,7 @@ def deploy(): os.system("ls") - # symlink to latest and link its index to the root - os.system(f"ln -s {latest_version} latest") + # link latest index to the root os.system(f"ln -s {latest_version}/index.html .") os.system("ls") diff --git a/docs/source/conf.py b/docs/source/conf.py index 260cae562b..5bac5a5888 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -62,7 +62,7 @@ smv_tag_whitelist = r"^$" # 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 = "latest" -legacy_versions = ["2.x", "1.3.0", "0.9.5"] +legacy_versions = ["2.x", "1.x", "0.x"] def add_legacy_versions_to_html_page_context(app, pagename, templatename, context, doctree):