mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-04 10:47:43 +00:00
docs: Add badge (#186)
* add badge * fix docs version * fix docs error * fix docs version
This commit is contained in:
+5
-3
@@ -6,7 +6,9 @@
|
||||
# -- Project information -----------------------------------------------------
|
||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
||||
|
||||
import importlib.metadata
|
||||
import subprocess
|
||||
|
||||
latest_tag = subprocess.check_output(["git", "describe", "--tags", "--abbrev=0"], text=True).strip()
|
||||
|
||||
project = "RDAgent"
|
||||
copyright = "2024, Microsoft"
|
||||
@@ -33,8 +35,8 @@ master_doc = "index"
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = importlib.metadata.version("rdagent")
|
||||
release = importlib.metadata.version("rdagent")
|
||||
version = latest_tag
|
||||
release = latest_tag
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation for
|
||||
# a list of supported languages.
|
||||
|
||||
Reference in New Issue
Block a user