mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
quickstart: Simplify generated conf.py (master_doc)
This commit is contained in:
parent
d4df28c643
commit
3791013c08
@ -64,7 +64,7 @@ templates_path = ['{{ dot }}templates']
|
||||
source_suffix = {{ suffix | repr }}
|
||||
|
||||
{% endif -%}
|
||||
{% if master_doc != 'index' -%}
|
||||
{% if master != 'index' -%}
|
||||
# The master toctree document.
|
||||
master_doc = {{ master | repr }}
|
||||
|
||||
|
@ -112,7 +112,6 @@ def test_quickstart_defaults(tempdir):
|
||||
execfile_(conffile, ns)
|
||||
assert ns['extensions'] == []
|
||||
assert ns['templates_path'] == ['_templates']
|
||||
assert ns['master_doc'] == 'index'
|
||||
assert ns['project'] == 'Sphinx Test'
|
||||
assert ns['copyright'] == '%s, Georg Brandl' % time.strftime('%Y')
|
||||
assert ns['version'] == '0.1'
|
||||
|
Loading…
Reference in New Issue
Block a user