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:
@ -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!")
|
||||
|
Reference in New Issue
Block a user