mirror of
https://github.com/Cian-H/read_aconity_layers.git
synced 2025-12-23 02:31:57 +00:00
Made release in site dynamic
This commit is contained in:
@@ -5,10 +5,16 @@
|
|||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
||||||
|
|
||||||
|
def get_release() -> str:
|
||||||
|
import subprocess
|
||||||
|
pkgid = subprocess.run(["cargo", "pkgid"], capture_output=True).stdout.decode().strip()
|
||||||
|
release_start = pkgid.rfind("#") + 1
|
||||||
|
return pkgid[release_start:]
|
||||||
|
|
||||||
project = "RAL"
|
project = "RAL"
|
||||||
copyright = "2024, Cian Hughes"
|
copyright = "2024, Cian Hughes"
|
||||||
author = "Cian Hughes"
|
author = "Cian Hughes"
|
||||||
release = "0.4.3"
|
release = get_release()
|
||||||
|
|
||||||
# -- General configuration ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user