mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #103: add all (usable) builtin extensions to quickstart.
This commit is contained in:
parent
db8f428414
commit
5b1415d16a
@ -589,6 +589,17 @@ Please indicate if you want to use one of the following Sphinx extensions:'''
|
||||
'in doctest blocks (y/N)', 'n', boolean)
|
||||
do_prompt(d, 'ext_intersphinx', 'intersphinx: link between Sphinx '
|
||||
'documentation of different projects (y/N)', 'n', boolean)
|
||||
do_prompt(d, 'ext_todo', 'todo: write "todo" entries '
|
||||
'that can be shown or hidden on build (y/N)', 'n', boolean)
|
||||
do_prompt(d, 'ext_coverage', 'coverage: checks for documentation '
|
||||
'coverage (y/N)', 'n', boolean)
|
||||
do_prompt(d, 'ext_pngmath', 'pngmath: include math, rendered '
|
||||
'as PNG images (y/N)', 'n', boolean)
|
||||
do_prompt(d, 'ext_jsmath', 'jsmath: include math, rendered in the '
|
||||
'browser by JSMath (y/N)', 'n', boolean)
|
||||
if d['ext_pngmath'] and d['ext_jsmath']:
|
||||
print '''Note: pngmath and jsmath cannot be enabled at the same time.
|
||||
pngmath has been deselected.'''
|
||||
print '''
|
||||
A Makefile and a Windows command file can be generated for you so that you
|
||||
only have to run e.g. `make html' instead of invoking sphinx-build
|
||||
@ -601,8 +612,9 @@ directly.'''
|
||||
d['now'] = time.asctime()
|
||||
d['underline'] = len(d['project']) * '='
|
||||
d['extensions'] = ', '.join(
|
||||
repr('sphinx.ext.' + name) for name in ('autodoc', 'doctest',
|
||||
'intersphinx')
|
||||
repr('sphinx.ext.' + name)
|
||||
for name in ('autodoc', 'doctest', 'intersphinx', 'todo', 'coverage',
|
||||
'pngmath', 'jsmath')
|
||||
if d['ext_' + name].upper() in ('Y', 'YES'))
|
||||
d['copyright'] = time.strftime('%Y') + ', ' + d['author']
|
||||
d['author_texescaped'] = unicode(d['author']).\
|
||||
|
@ -121,6 +121,10 @@ def test_quickstart_all_answers(tempdir):
|
||||
'autodoc': 'y',
|
||||
'doctest': 'yes',
|
||||
'intersphinx': 'no',
|
||||
'todo': 'n',
|
||||
'coverage': 'no',
|
||||
'pngmath': 'N',
|
||||
'jsmath': 'no',
|
||||
'Create Makefile': 'no',
|
||||
'Create Windows command file': 'no',
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user