comparison 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
comparison
equal deleted inserted replaced
8062:28aa76443f58 8063:6d4b5005abf2
24 # `roundup` is importable from other location in sys.path 24 # `roundup` is importable from other location in sys.path
25 SYSSAVE = sys.path 25 SYSSAVE = sys.path
26 DOCROOT = os.path.abspath(os.path.dirname(__file__) + "/..") 26 DOCROOT = os.path.abspath(os.path.dirname(__file__) + "/..")
27 sys.path = [os.path.dirname(DOCROOT)] 27 sys.path = [os.path.dirname(DOCROOT)]
28 try: 28 try:
29 from roundup import __version__ as VERSION 29 if "RELEASE_VERSION" in os.environ:
30 SHORTVER = '.'.join(VERSION.split('.', 2)[:2]) 30 SHORTVER = '.'.join(os.environ['RELEASE_VERSION'].split('.', 2)[:2])
31 VERSION = os.environ['RELEASE_VERSION']
32 else:
33 from roundup import __version__ as VERSION
34 SHORTVER = '.'.join(VERSION.split('.', 2)[:2])
31 except ImportError: 35 except ImportError:
32 VERSION = SHORTVER = '(unknown version)' 36 VERSION = SHORTVER = '(unknown version)'
33 finally: 37 finally:
34 sys.path = SYSSAVE 38 sys.path = SYSSAVE
35 39

Roundup Issue Tracker: http://roundup-tracker.org/