From ff3bb831c0841a4b04552508918c415b73ba5ce0 Mon Sep 17 00:00:00 2001 From: megha Date: Thu, 18 Feb 2021 16:17:33 +0530 Subject: [PATCH] bug fix #567 --- doc/sphinx/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/sphinx/conf.py b/doc/sphinx/conf.py index c7302eae..56702a17 100644 --- a/doc/sphinx/conf.py +++ b/doc/sphinx/conf.py @@ -13,6 +13,8 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. # import os +import lsb_release + # import sys # sys.path.insert(0, os.path.abspath('.')) @@ -24,7 +26,9 @@ author = 'SiFive Inc.' # The short X.Y version +distro_info = lsb_release.get_distro_information() #version = os.environ['RELEASE_TAG'] +release = distro_info['RELEASE'] # The full version, including alpha/beta/rc tags #release = version