From d6ee42633bec119006ff6ab463789ef93406218c Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 13 Jan 2022 20:18:13 +0100 Subject: [PATCH] btrfs-progs: docs: set version from VERSION file Signed-off-by: David Sterba --- Documentation/conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/conf.py b/Documentation/conf.py index 1928f303..aa6d347a 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -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']