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