mirror of
https://github.com/Cian-H/read_aconity_layers.git
synced 2025-12-22 18:31:56 +00:00
Fixed package label for readthedocs sphinx version
This commit is contained in:
@@ -9,7 +9,10 @@ def get_release() -> str:
|
|||||||
import subprocess
|
import subprocess
|
||||||
pkgid = subprocess.run(["cargo", "pkgid"], capture_output=True).stdout.decode().strip()
|
pkgid = subprocess.run(["cargo", "pkgid"], capture_output=True).stdout.decode().strip()
|
||||||
release_start = pkgid.rfind("#") + 1
|
release_start = pkgid.rfind("#") + 1
|
||||||
return pkgid[release_start:]
|
pkglabel = pkgid[release_start:]
|
||||||
|
verlabel = pkglabel[pkglabel.rfind("@") + 1] if "@" in pkglabel else pkglabel
|
||||||
|
return verlabel
|
||||||
|
|
||||||
|
|
||||||
project = "RAL"
|
project = "RAL"
|
||||||
copyright = "2024, Cian Hughes"
|
copyright = "2024, Cian Hughes"
|
||||||
|
|||||||
Reference in New Issue
Block a user