mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
docs(index) use version extracted from lvgl.h
This commit is contained in:
parent
f812020eba
commit
57417a851e
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user