diff --git a/mps/manual/source/conf.py b/mps/manual/source/conf.py index d9daac312ea..733438fc253 100644 --- a/mps/manual/source/conf.py +++ b/mps/manual/source/conf.py @@ -25,9 +25,16 @@ sys.path.insert(0, os.path.abspath('.')) # -- Project configuration ----------------------------------------------------- # The same set of sources builds the Memory Pool System documentation -# and the Memory Management Reference. +# and the Memory Management Reference, depending on whether the MMREF +# environment variable is set. -if True: +if os.environ.get('MMREF'): + project = u'Memory Management Reference' + master_doc = 'index' + html_theme = 'mmref' + version = '4' + release = '4.0' +else: project = u'Memory Pool System' master_doc = 'index' html_theme = 'mps' @@ -41,12 +48,6 @@ if True: if m: release, version = m.groups() break -else: - project = u'Memory Management Reference' - master_doc = 'index' - html_theme = 'mmref' - version = '4' - release = '4.0' # -- General configuration ----------------------------------------------------- diff --git a/mps/manual/source/themes/mmref/layout.html b/mps/manual/source/themes/mmref/layout.html new file mode 100644 index 00000000000..0597e1ca7ef --- /dev/null +++ b/mps/manual/source/themes/mmref/layout.html @@ -0,0 +1,42 @@ +{# + scrolls/layout.html + ~~~~~~~~~~~~~~~~~~~ + + Sphinx layout template for the scrolls theme, originally written + by Armin Ronacher. + + :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS. + :license: BSD, see LICENSE for details. +#} +{%- extends "basic/layout.html" %} +{% set script_files = script_files + ['_static/theme_extras.js'] %} +{% set css_files = css_files + ['_static/print.css'] %} +{# do not display relbars #} +{% block relbar1 %}{% endblock %} +{% block relbar2 %}{% endblock %} +{% block content %} +