btrfs-progs: docs: set version from VERSION file
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
8ecc3cd7af
commit
d6ee42633b
|
@ -14,13 +14,14 @@
|
||||||
# import sys
|
# import sys
|
||||||
# sys.path.insert(0, os.path.abspath('.'))
|
# sys.path.insert(0, os.path.abspath('.'))
|
||||||
|
|
||||||
|
import pathlib
|
||||||
|
|
||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
project = 'BTRFS'
|
project = 'BTRFS'
|
||||||
# TODO: get from date
|
# TODO: get from date
|
||||||
copyright = '2021'
|
copyright = '2022'
|
||||||
|
|
||||||
# TODO: copy from ../VERSION
|
version = pathlib.Path("../VERSION").read_text().strip('v\n')
|
||||||
release = '5.14.2'
|
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
templates_path = ['_templates']
|
templates_path = ['_templates']
|
||||||
|
|
Loading…
Reference in New Issue