forked from ungleich-public/cdist
Fix manpage generation.
This commit is contained in:
parent
e4f263ecb7
commit
f881228878
1 changed files with 1 additions and 2 deletions
|
@ -27,13 +27,12 @@ class ManualPageWriter(sphinx.writers.manpage.ManualPageWriter):
|
||||||
|
|
||||||
def __init__(self, builder):
|
def __init__(self, builder):
|
||||||
super().__init__(builder)
|
super().__init__(builder)
|
||||||
self.translator_class = (
|
|
||||||
self.builder.translator_class or ManualPageTranslator)
|
|
||||||
|
|
||||||
|
|
||||||
class ManualPageBuilder(sphinx.builders.manpage.ManualPageBuilder):
|
class ManualPageBuilder(sphinx.builders.manpage.ManualPageBuilder):
|
||||||
|
|
||||||
name = 'cman'
|
name = 'cman'
|
||||||
|
default_translator_class = ManualPageTranslator
|
||||||
|
|
||||||
def write(self, *ignored):
|
def write(self, *ignored):
|
||||||
docwriter = ManualPageWriter(self)
|
docwriter = ManualPageWriter(self)
|
||||||
|
|
Loading…
Reference in a new issue