当前位置: 首页>>代码示例>>Python>>正文


Python HTMLTranslator.__init__方法代码示例

本文整理汇总了Python中sphinx.writers.html.HTMLTranslator.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python HTMLTranslator.__init__方法的具体用法?Python HTMLTranslator.__init__怎么用?Python HTMLTranslator.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在sphinx.writers.html.HTMLTranslator的用法示例。


在下文中一共展示了HTMLTranslator.__init__方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from sphinx.writers.html import HTMLTranslator [as 别名]
# 或者: from sphinx.writers.html.HTMLTranslator import __init__ [as 别名]
    def __init__(self, *args, **kwargs):

        HTMLTranslator.__init__(self, *args, **kwargs)

        self.section_count = 0
        self.body_stack = []
        self.current_slide = None
        self.slide_data = []
开发者ID:harrisonfeng,项目名称:hieroglyph,代码行数:10,代码来源:writer.py

示例2: __init__

# 需要导入模块: from sphinx.writers.html import HTMLTranslator [as 别名]
# 或者: from sphinx.writers.html.HTMLTranslator import __init__ [as 别名]
 def __init__(self, builder, *args, **kwds):
     """
     constructor
     """
     HTMLTranslator.__init__(self, builder, *args, **kwds)
     for name, f1, f2 in builder._function_node:
         setattr(self.__class__, "visit_" + name, f1)
         setattr(self.__class__, "depart_" + name, f2)
开发者ID:,项目名称:,代码行数:10,代码来源:

示例3: __init__

# 需要导入模块: from sphinx.writers.html import HTMLTranslator [as 别名]
# 或者: from sphinx.writers.html.HTMLTranslator import __init__ [as 别名]
 def __init__(self, builder, document, *args, **kwargs):
     HTMLTranslator.__init__(self, builder, document, *args, **kwargs)
     self._title = None  # section title
     self.parent = None
     self.add_to_toc = False
     self.order = 0
     self.add_permalinks = False
     self.css = ['main.css']
     self._images = set()
开发者ID:nvdnkpr,项目名称:rst2epub2,代码行数:11,代码来源:sphinxext.py

示例4: __init__

# 需要导入模块: from sphinx.writers.html import HTMLTranslator [as 别名]
# 或者: from sphinx.writers.html.HTMLTranslator import __init__ [as 别名]
 def __init__(self, builder, *args, **kwargs):
     HTMLTranslator.__init__(self, builder, *args, **kwargs)
     self.comment_class = 'sphinx-has-comment'
开发者ID:blaisep,项目名称:readthedocs-sphinx-ext,代码行数:5,代码来源:translator.py

示例5: __init__

# 需要导入模块: from sphinx.writers.html import HTMLTranslator [as 别名]
# 或者: from sphinx.writers.html.HTMLTranslator import __init__ [as 别名]
    def __init__(self, *args, **kwargs):

        HTMLTranslator.__init__(self, *args, **kwargs)

        self.section_count = 0
开发者ID:AndreaCrotti,项目名称:hieroglyph,代码行数:7,代码来源:writer.py

示例6: __init__

# 需要导入模块: from sphinx.writers.html import HTMLTranslator [as 别名]
# 或者: from sphinx.writers.html.HTMLTranslator import __init__ [as 别名]
 def __init__(self, builder, *args, **kwds):
     HTMLTranslator.__init__(self, builder, *args, **kwds)
     self.initial_header_level = 1
开发者ID:FashtimeDotCom,项目名称:isso,代码行数:5,代码来源:html5.py

示例7: __init__

# 需要导入模块: from sphinx.writers.html import HTMLTranslator [as 别名]
# 或者: from sphinx.writers.html.HTMLTranslator import __init__ [as 别名]
 def __init__(self, builder, *args, **kwds):
     HTMLTranslator.__init__(self, builder, *args, **kwds)
     builder.templates.environment.filters['get_type'] = _getType
     builder.templates.environment.tests['index'] = _isIndex
     self.highlightlinenothreshold = 0
开发者ID:AAstakhov,项目名称:symfony-docs,代码行数:7,代码来源:__init__.py

示例8: __init__

# 需要导入模块: from sphinx.writers.html import HTMLTranslator [as 别名]
# 或者: from sphinx.writers.html.HTMLTranslator import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     HTMLTranslator.__init__(self, *args, **kwargs)
     self.xref_close = 0
开发者ID:MaxWorgan,项目名称:eclim,代码行数:5,代码来源:rss.py

示例9: __init__

# 需要导入模块: from sphinx.writers.html import HTMLTranslator [as 别名]
# 或者: from sphinx.writers.html.HTMLTranslator import __init__ [as 别名]
 def __init__(self, *args, **kwargs):
     builder = FakeBuilder()
     HTMLTranslator.__init__(self, builder, *args, **kwargs)
开发者ID:pombredanne,项目名称:soho,代码行数:5,代码来源:rst.py

示例10: __init__

# 需要导入模块: from sphinx.writers.html import HTMLTranslator [as 别名]
# 或者: from sphinx.writers.html.HTMLTranslator import __init__ [as 别名]
    def __init__(self, builder, *args, **kwds):
        HTMLTranslator.__init__(self, builder, *args, **kwds)
	self.highlighter = ConfluencePygmentsBridge()
开发者ID:Scalr,项目名称:sphinx,代码行数:5,代码来源:confluence.py


注:本文中的sphinx.writers.html.HTMLTranslator.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。