summaryrefslogtreecommitdiffstatshomepage
path: root/docs/source/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r--docs/source/conf.py28
1 files changed, 21 insertions, 7 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 4130e982e30..dd4277f9919 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -11,9 +11,10 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
-import sys, os
+import os.path
+import sys
-sys.path.insert(0, os.path.abspath('_ext'))
+sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '_ext'))
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@@ -31,8 +32,8 @@ extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.mathjax',
'sphinx.ext.viewcode',
- 'edit_on_github',
- 'sphinxcontrib.rsvgconverter'
+ 'sphinxcontrib.rsvgconverter',
+ 'edit_on_github'
]
edit_on_github_project = 'mamedev/mame'
@@ -55,16 +56,16 @@ master_doc = 'index'
# General information about the project.
project = u'MAME Documentation'
-copyright = u'2019, MAMEdev Team'
+copyright = u'1997-2025, MAMEdev and contributors'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
-version = '0.205'
+version = '0.277'
# The full version, including alpha/beta/rc tags.
-release = '0.205'
+release = '0.277'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
@@ -145,8 +146,12 @@ html_theme_path = ["../themes/"]
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
+# This was deprecated in Sphinx 1.6.6
#html_use_smartypants = True
+# We don't want smartquotes in general.
+smartquotes = False
+
# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
@@ -257,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