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
|
||||
# sys.path.insert(0, os.path.abspath('.'))
|
||||
|
||||
import pathlib
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
project = 'BTRFS'
|
||||
# TODO: get from date
|
||||
copyright = '2021'
|
||||
copyright = '2022'
|
||||
|
||||
# TODO: copy from ../VERSION
|
||||
release = '5.14.2'
|
||||
version = pathlib.Path("../VERSION").read_text().strip('v\n')
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
|
Loading…
Reference in New Issue