Create ipasphinx package for Sphinx plugins

Sphinx is extensible with plugins that can add new syntax, roles,
directives, domains, and more.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Christian Heimes
2020-04-28 20:03:21 +02:00
parent 87408ee755
commit e00dc40fea
11 changed files with 248 additions and 15 deletions
+8
View File
@@ -304,6 +304,10 @@ class Gettext(LazyText):
def format(self, *args, **kwargs):
return unicode(self).format(*args, **kwargs)
def expandtabs(self, tabsize=8):
"""Compatibility for sphinx prepare_docstring()"""
return str(self).expandtabs(tabsize)
@six.python_2_unicode_compatible
class FixMe(Gettext):
@@ -524,6 +528,10 @@ class ConcatenatedLazyText:
else:
return ConcatenatedLazyText(*[other] + self.components)
def expandtabs(self, tabsize=8):
"""Compatibility for sphinx prepare_docstring()"""
return str(self).expandtabs(tabsize)
class GettextFactory:
"""