summaryrefslogtreecommitdiffstats
path: root/docs/source/conf.py
diff options
context:
space:
mode:
author Firehawke <34792592+Firehawke@users.noreply.github.com>2021-12-04 15:31:12 -0700
committer GitHub <noreply@github.com>2021-12-04 15:31:12 -0700
commit48c2620e3e1874d36cdcd8c3fc9a6047c36617aa (patch)
tree386768f6d9d18af6bf43fe8747084a7168d466d3 /docs/source/conf.py
parent028d02ba7a616af3a8f3f04a451c6af324d8fb3c (diff)
Refactor html docs build process to use new template and env variable
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r--docs/source/conf.py9
1 files changed, 9 insertions, 0 deletions
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