mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Replace pngmath with imgmath in quickstart.
This commit is contained in:
parent
657ebc2ab0
commit
ea25284d0a
@ -60,7 +60,7 @@ DEFAULT_VALUE = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EXTENSIONS = ('autodoc', 'doctest', 'intersphinx', 'todo', 'coverage',
|
EXTENSIONS = ('autodoc', 'doctest', 'intersphinx', 'todo', 'coverage',
|
||||||
'pngmath', 'mathjax', 'ifconfig', 'viewcode')
|
'imgmath', 'mathjax', 'ifconfig', 'viewcode')
|
||||||
|
|
||||||
PROMPT_PREFIX = '> '
|
PROMPT_PREFIX = '> '
|
||||||
|
|
||||||
@ -1255,16 +1255,16 @@ Please indicate if you want to use one of the following Sphinx extensions:''')
|
|||||||
if 'ext_coverage' not in d:
|
if 'ext_coverage' not in d:
|
||||||
do_prompt(d, 'ext_coverage', 'coverage: checks for documentation '
|
do_prompt(d, 'ext_coverage', 'coverage: checks for documentation '
|
||||||
'coverage (y/n)', 'n', boolean)
|
'coverage (y/n)', 'n', boolean)
|
||||||
if 'ext_pngmath' not in d:
|
if 'ext_imgmath' not in d:
|
||||||
do_prompt(d, 'ext_pngmath', 'pngmath: include math, rendered '
|
do_prompt(d, 'ext_imgmath', 'imgmath: include math, rendered '
|
||||||
'as PNG images (y/n)', 'n', boolean)
|
'as PNG or SVG images (y/n)', 'n', boolean)
|
||||||
if 'ext_mathjax' not in d:
|
if 'ext_mathjax' not in d:
|
||||||
do_prompt(d, 'ext_mathjax', 'mathjax: include math, rendered in the '
|
do_prompt(d, 'ext_mathjax', 'mathjax: include math, rendered in the '
|
||||||
'browser by MathJax (y/n)', 'n', boolean)
|
'browser by MathJax (y/n)', 'n', boolean)
|
||||||
if d['ext_pngmath'] and d['ext_mathjax']:
|
if d['ext_imgmath'] and d['ext_mathjax']:
|
||||||
print('''Note: pngmath and mathjax cannot be enabled at the same time.
|
print('''Note: imgmath and mathjax cannot be enabled at the same time.
|
||||||
pngmath has been deselected.''')
|
imgmath has been deselected.''')
|
||||||
d['ext_pngmath'] = False
|
d['ext_imgmath'] = False
|
||||||
if 'ext_ifconfig' not in d:
|
if 'ext_ifconfig' not in d:
|
||||||
do_prompt(d, 'ext_ifconfig', 'ifconfig: conditional inclusion of '
|
do_prompt(d, 'ext_ifconfig', 'ifconfig: conditional inclusion of '
|
||||||
'content based on config values (y/n)', 'n', boolean)
|
'content based on config values (y/n)', 'n', boolean)
|
||||||
|
@ -181,7 +181,7 @@ def test_quickstart_all_answers(tempdir):
|
|||||||
'intersphinx': 'no',
|
'intersphinx': 'no',
|
||||||
'todo': 'y',
|
'todo': 'y',
|
||||||
'coverage': 'no',
|
'coverage': 'no',
|
||||||
'pngmath': 'N',
|
'imgmath': 'N',
|
||||||
'mathjax': 'no',
|
'mathjax': 'no',
|
||||||
'ifconfig': 'no',
|
'ifconfig': 'no',
|
||||||
'viewcode': 'no',
|
'viewcode': 'no',
|
||||||
|
Loading…
Reference in New Issue
Block a user