quickstart: Simplify generated conf.py (master_doc)

This commit is contained in:
Takeshi KOMIYA 2019-02-09 01:39:39 +09:00
parent d4df28c643
commit 3791013c08
2 changed files with 1 additions and 2 deletions

View File

@ -64,7 +64,7 @@ templates_path = ['{{ dot }}templates']
source_suffix = {{ suffix | repr }} source_suffix = {{ suffix | repr }}
{% endif -%} {% endif -%}
{% if master_doc != 'index' -%} {% if master != 'index' -%}
# The master toctree document. # The master toctree document.
master_doc = {{ master | repr }} master_doc = {{ master | repr }}

View File

@ -112,7 +112,6 @@ def test_quickstart_defaults(tempdir):
execfile_(conffile, ns) execfile_(conffile, ns)
assert ns['extensions'] == [] assert ns['extensions'] == []
assert ns['templates_path'] == ['_templates'] assert ns['templates_path'] == ['_templates']
assert ns['master_doc'] == 'index'
assert ns['project'] == 'Sphinx Test' assert ns['project'] == 'Sphinx Test'
assert ns['copyright'] == '%s, Georg Brandl' % time.strftime('%Y') assert ns['copyright'] == '%s, Georg Brandl' % time.strftime('%Y')
assert ns['version'] == '0.1' assert ns['version'] == '0.1'