Merge branch '1.8' into 2.0

This commit is contained in:
Takeshi KOMIYA committed 2019-03-10 16:52:51 +09:00
commit 4bac6b56d0
8 files changed
+104 -7

No files matched your search

Whitespace-only changes.
@@ -0,0 +1,5 @@
index_on_title
==============
Test for :index:`index` in top level title
------------------------------------------
+10
View File
@@ -1409,3 +1409,13 @@ def test_includegraphics_oversized(app, status, warning):
print(status.getvalue())
print(warning.getvalue())
compile_latex_document(app)
@pytest.mark.sphinx('latex', testroot='index_on_title')
def test_index_on_title(app, status, warning):
app.builder.build_all()
result = (app.outdir / 'Python.tex').text(encoding='utf8')
assert ('\\chapter{Test for index in top level title}\n'
'\\label{\\detokenize{contents:test-for-index-in-top-level-title}}'
'\\index{index@\\spxentry{index}}\n'
in result)
+21
View File
@@ -30,6 +30,27 @@ def test_all(app, status, warning):
assert 'Footnotes' not in content
@pytest.mark.sphinx('man', testroot='directive-code')
def test_captioned_code_block(app, status, warning):
app.builder.build_all()
content = (app.outdir / 'python.1').text()
assert ('.sp\n'
'caption \\fItest\\fP rb\n'
'.INDENT 0.0\n'
'.INDENT 3.5\n'
'.sp\n'
'.nf\n'
'.ft C\n'
'def ruby?\n'
' false\n'
'end\n'
'.ft P\n'
'.fi\n'
'.UNINDENT\n'
'.UNINDENT\n' in content)
def test_default_man_pages():
config = Config({'project': 'STASI™ Documentation',
'author': "Wolfgang Schäuble & G'Beckstein",