diff --git a/docs/conf.py b/docs/conf.py index 3aaab12ef..060ca1b02 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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.