From 48c2620e3e1874d36cdcd8c3fc9a6047c36617aa Mon Sep 17 00:00:00 2001 From: Firehawke <34792592+Firehawke@users.noreply.github.com> Date: Sat, 4 Dec 2021 15:31:12 -0700 Subject: Refactor html docs build process to use new template and env variable --- docs/source/conf.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs/source/conf.py') diff --git a/docs/source/conf.py b/docs/source/conf.py index b0216243210..95dc1d19bbf 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -262,3 +262,12 @@ texinfo_documents = [ # How to display URL addresses: 'footnote', 'no', or 'inline'. #texinfo_show_urls = 'footnote' + +# Add download links at bottom left when the MAMEDEV environment +# varaible is set. See versions.html in the _template folder. +try: + html_context +except NameError: + html_context = dict() +if os.getenv("MAMEDEV") != None: + html_context['mamedev_site'] = True -- cgit v1.2.3-70-g09d2