diff --git a/docs/source/conf.py b/docs/source/conf.py index 5e237f2..caaec76 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -22,6 +22,8 @@ """Sphinx documentation configuration.""" +import os + # -- General configuration ------------------------------------------------ # If your documentation needs a minimal Sphinx version, state it here. @@ -68,9 +70,9 @@ author = "Marcos Pereira" # built documents. # # The short X.Y version. -version = "0.0.0" +version = os.getenv("READTHEDOCS_VERSION", "latest") # The full version, including alpha/beta/rc tags. -release = "0.0.0" +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.