From bcb1870ac8d5908b01aa0271f2c4bac5030b9ebd Mon Sep 17 00:00:00 2001
From: Richard Nemeth <ryshoooo@gmail.com>
Date: Mon, 27 Jan 2025 22:28:47 +0100
Subject: [PATCH] docs: fix version

---
 docs/source/conf.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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.