mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add manual page writer.
This commit is contained in:
@@ -45,6 +45,15 @@ def test_epub(app):
|
||||
def test_changes(app):
|
||||
app.builder.build_all()
|
||||
|
||||
try:
|
||||
from docutils.writers.manpage import Writer
|
||||
except ImportError:
|
||||
pass
|
||||
else:
|
||||
@with_app(buildername='man')
|
||||
def test_man(app):
|
||||
app.builder.build_all()
|
||||
|
||||
@with_app(buildername='singlehtml', cleanenv=True)
|
||||
def test_singlehtml(app):
|
||||
app.builder.build_all()
|
||||
|
||||
@@ -129,6 +129,7 @@ def test_quickstart_all_answers(tempdir):
|
||||
'viewcode': 'no',
|
||||
'Create Makefile': 'no',
|
||||
'Create Windows command file': 'no',
|
||||
'Do you want to use the epub builder': 'yes',
|
||||
}
|
||||
qs.raw_input = mock_raw_input(answers, needanswer=True)
|
||||
qs.TERM_ENCODING = 'utf-8'
|
||||
@@ -151,6 +152,10 @@ def test_quickstart_all_answers(tempdir):
|
||||
assert ns['latex_documents'] == [
|
||||
('contents', 'STASI.tex', u'STASI™ Documentation',
|
||||
u'Wolfgang Schäuble \\& G\'Beckstein', 'manual')]
|
||||
assert ns['epub_author'] == u'Wolfgang Schäuble & G\'Beckstein'
|
||||
assert ns['man_pages'] == [
|
||||
('contents', 'stasi', u'STASI™ Documentation',
|
||||
[u'Wolfgang Schäuble & G\'Beckstein'], 1)]
|
||||
|
||||
assert (tempdir / 'build').isdir()
|
||||
assert (tempdir / 'source' / '.static').isdir()
|
||||
|
||||
Reference in New Issue
Block a user