mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
It should be use bold style to reference man pages in man format. On other formats, it is still represented as emphasis.
24 lines
621 B
Python
24 lines
621 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
test_build_manpage
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
Test the build process with manpage builder with the test root.
|
|
|
|
:copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
|
|
:license: BSD, see LICENSE for details.
|
|
"""
|
|
from __future__ import print_function
|
|
|
|
from util import with_app
|
|
|
|
|
|
@with_app(buildername='man')
|
|
def test_all(app, status, warning):
|
|
app.builder.build_all()
|
|
assert (app.outdir / 'SphinxTests.1').exists()
|
|
|
|
content = (app.outdir / 'SphinxTests.1').text()
|
|
assert r'\fBprint \fP\fIi\fP\fB\en\fP' in content
|
|
assert r'\fBmanpage\en\fP' in content
|