docs(index) use version extracted from lvgl.h
@@ -25,6 +25,7 @@ sys.path.insert(0, os.path.abspath('./_ext'))
import recommonmark
from recommonmark.transform import AutoStructify
from sphinx.builders.html import StandaloneHTMLBuilder
+from subprocess import Popen, PIPE
# -- General configuration ------------------------------------------------
@@ -73,7 +74,9 @@ author = 'The community of LVGL'
# built documents.
#
# The short X.Y version.
-version = 'v7.11.0-dev'
+# embeddedt: extract using scripts/find_version.sh
+
+version = subprocess.run(["../scripts/find_version.sh"], capture_output=True).stdout.decode("utf-8").strip()
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
