directives.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:sphinxcontrib-ansibleautodoc 作者: shirou 项目源码 文件源码
def run(self):
        title = u''
        if self.arguments:
            title += self.arguments[0]

        if 'class' in self.options:
            self.options['class'].append(self.css_class)
        else:
            self.options['class'] = [self.css_class]

        ret = make_admonition(
            nodes.admonition, self.name, [title], self.options,
            self.content, self.lineno, self.content_offset, self.block_text,
            self.state, self.state_machine)
        ret[0].attributes['name'] = self.name
        return ret
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号