diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-10-03 22:26:32 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-10-03 22:30:20 +0900 |
commit | 178c05b0597e144fdc2117c7b46ac15723a290e8 (patch) | |
tree | 1fd34a4def75ca2926d0e98240ece3864ef5f939 /tests | |
parent | 88b81a06eb635a1596617f8971fa97a84c069e93 (diff) | |
download | sphinx-git-178c05b0597e144fdc2117c7b46ac15723a290e8.tar.gz |
Close #7996: manpage: Add man_make_section_directory7996_man_make_section_directory
Add a new config variable; man_make_section_directory to make a
section directory on build man page. During 3.x, it defaults to
False and will be changed to True on 4.0 release.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_build_manpage.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_build_manpage.py b/tests/test_build_manpage.py index c3c41a2ae..d4b1a320e 100644 --- a/tests/test_build_manpage.py +++ b/tests/test_build_manpage.py @@ -30,6 +30,13 @@ def test_all(app, status, warning): assert 'Footnotes' not in content +@pytest.mark.sphinx('man', testroot='basic', + confoverrides={'man_make_section_directory': True}) +def test_man_make_section_directory(app, status, warning): + app.build() + assert (app.outdir / '1' / 'python.1').exists() + + @pytest.mark.sphinx('man', testroot='directive-code') def test_captioned_code_block(app, status, warning): app.builder.build_all() |