btrfs-progs: docs: set version from VERSION file

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2022-01-13 20:18:13 +01:00
parent 8ecc3cd7af
commit d6ee42633b
1 changed files with 4 additions and 3 deletions

View File

@ -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']