mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
docs: Add badge (#186)
* add badge * fix docs version * fix docs error * fix docs version
This commit is contained in:
@@ -4,11 +4,15 @@
|
||||
[](https://github.com/microsoft/RD-Agent/actions/workflows/pr.yml)
|
||||
[](https://github.com/microsoft/RD-Agent/actions/workflows/readthedocs-preview.yml)
|
||||
[](https://github.com/microsoft/RD-Agent/actions/workflows/release.yml)
|
||||
[](https://github.com/microsoft/RD-Agent/releases)
|
||||
[](https://pypi.org/project/rdagent/)
|
||||
[](https://pypi.org/project/rdagent/)
|
||||
[](https://github.com/pre-commit/pre-commit)
|
||||
[](http://mypy-lang.org/)
|
||||
[](https://github.com/astral-sh/ruff)
|
||||
<!-- TODO: License / pypi / PyPI - Python Version -->
|
||||
<!-- [](https://github.com/microsoft/RD-Agent/releases) -->
|
||||
<!-- [](https://github.com/microsoft/RD-Agent/blob/main/LICENSE) -->
|
||||
|
||||
<!-- Comment badge to wait until the project is publicly available. -->
|
||||
|
||||
# 📰 News
|
||||
| 🗞️News | 📝Description |
|
||||
|
||||
+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