Fix Multi version docs, closes #1739

This commit is contained in:
Georg Krause 2022-03-21 12:01:29 +01:00
parent 6cc9f33df3
commit a3c49f57b7
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash -eux
# Building sphinx and swagger docs
poetry run python -m sphinx . $BUILD_PATH # TODO enable multi version #1739
poetry run sphinx-multiversion . $BUILD_PATH
TARGET_PATH="$BUILD_PATH/swagger" ./build_swagger.sh
python ./get-releases-json.py > $BUILD_PATH/releases.json
python ./get-releases-json.py --latest > $BUILD_PATH/latest.txt

View File

@ -82,9 +82,8 @@ author = "The Funkwhale Collective"
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = subprocess.check_output(["git", "describe", "--tags"]).strip().decode("utf-8")
# Read version from the API
version = funkwhale_api.__version__
release = version
# The language for content autogenerated by Sphinx. Refer to documentation