Mercurial > p > roundup > code
diff website/www/conf.py @ 8063:6d4b5005abf2
docs: changes to website docs to announce CVE's
Changes to the website doc generation to create CVE.html by extracing
secions from upgrading.txt. It also allows overriding the release
version that is displayed in the web page titles.
It also adds support for making a zipfile (which is better supported
on windows that a tarball) of the templates needed to address the CVE
in the tracker home html files
The next commit for this directory will remove the generation of the
CVE.html file as CVE remediation/scope issue will be in the
upgrading.html document. It will also remove generation of
templates.zip.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 09 Jul 2024 09:12:29 -0400 |
| parents | b516483f68a3 |
| children | d6b447de4f59 |
line wrap: on
line diff
--- a/website/www/conf.py Tue Jul 09 09:07:09 2024 -0400 +++ b/website/www/conf.py Tue Jul 09 09:12:29 2024 -0400 @@ -26,8 +26,12 @@ DOCROOT = os.path.abspath(os.path.dirname(__file__) + "/..") sys.path = [os.path.dirname(DOCROOT)] try: - from roundup import __version__ as VERSION - SHORTVER = '.'.join(VERSION.split('.', 2)[:2]) + if "RELEASE_VERSION" in os.environ: + SHORTVER = '.'.join(os.environ['RELEASE_VERSION'].split('.', 2)[:2]) + VERSION = os.environ['RELEASE_VERSION'] + else: + from roundup import __version__ as VERSION + SHORTVER = '.'.join(VERSION.split('.', 2)[:2]) except ImportError: VERSION = SHORTVER = '(unknown version)' finally:
