docs: Add badge (#186)

* add badge

* fix docs version

* fix docs error

* fix docs version
This commit is contained in:
Linlang
2024-08-09 12:05:45 +08:00
committed by GitHub
parent d0b882e71c
commit 77faf5ed21
2 changed files with 11 additions and 5 deletions
+5 -3
View File
@@ -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.