2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-06-14 19:25:37 +00:00

version banner fixes (#331)

* version banner fixes

* More context

* Banner tweaks

* Template fix

* HTML tweaks

* Banner simplificatio
This commit is contained in:
Oliver
2022-07-26 15:08:15 +10:00
committed by GitHub
parent cf5dbf03cf
commit c23165307b
2 changed files with 12 additions and 7 deletions

View File

@ -49,6 +49,10 @@ def on_config(config, *args, **kwargs):
# Supply this to the context
config['readthedocs'] = readthedocs
# Determine if we want to display a 'version' banner
# Basically we do, *unless* we are displaying the "stable" version
config['version_banner'] = rtd_version != 'stable'
else:
print("'READTHEDOCS' environment variable not found")
print("Building for localhost configuration!")