diff --git a/doc/sphinx/conf.py b/doc/sphinx/conf.py index 5688a5d52..e48870d64 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,9 +26,11 @@ author = 'SiFive Inc.' # The short X.Y version -version = os.environ['RELEASE_TAG'] +distro_info = lsb_release.get_distro_information() + # The full version, including alpha/beta/rc tags -release = version +release = distro_info['RELEASE'] + # -- General configuration ---------------------------------------------------