The new directive and role "iscman" allow to tag & reference man pages in
our source tree. Essentially it is just namespacing for ISC man pages,
but it comes with couple benefits.
Differences from .. _man_program label we formerly used:
- Does not expand :ref:`man_program` into full text of the page header.
- Generates index entry with category "manual page".
- Rendering style is closer to ubiquitous to the one produced
by ``named`` syntax.
Differences from Sphinx built-in :manpage: role:
- Supports all builders with support for cross-references.
- Generates internal links (unlike :manpage: which generates external
URLs).
- Checks that target exists withing our source tree.
(cherry-picked from commit
7e7a946d4446e6a91fb994a8c2456289e8bf6e42)
raise ValueError
-def setup(_):
+def setup(app):
roles.register_local_role('gl', GitLabRefRole(GITLAB_BASE_URL))
+ app.add_crossref_type('iscman', 'iscman', 'pair: %s; manual page')
#
# Configuration file for the Sphinx documentation builder.
('rndc', 'rndc', 'name server control utility', author, 8),
('tsig-keygen', 'tsig-keygen', 'TSIG key generation tool', author, 8),
]
+
+def setup(app):
+ app.add_crossref_type('iscman', 'iscman', 'pair: %s; manual page')