• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python MooseMarkdownCommon.MooseMarkdownCommon类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中MooseMarkdownCommon.MooseMarkdownCommon的典型用法代码示例。如果您正苦于以下问题:Python MooseMarkdownCommon类的具体用法?Python MooseMarkdownCommon怎么用?Python MooseMarkdownCommon使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



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

示例1: __init__

 def __init__(self, markdown_instance=None, **kwargs):
     MooseMarkdownCommon.__init__(self, **kwargs)
     regex = r'^!chart\s+(?P<template>{})(?:$|\s+)(?P<settings>.*)'.format(self.TEMPLATE)
     Pattern.__init__(self, regex, markdown_instance)
     self._csv = dict() # CSV DataFrame cache
     self._count = 0
     self._status = None
开发者ID:aeslaughter,项目名称:moose,代码行数:7,代码来源:gchart.py


示例2: __init__

    def __init__(self, markdown_instance=None, **kwargs):
        MooseMarkdownCommon.__init__(self, **kwargs)
        Pattern.__init__(self, self.RE, markdown_instance)

        # The root/repo settings
        self._repo = kwargs.pop('repo')
        self._branch = kwargs.pop('branch')
开发者ID:zachmprince,项目名称:moose,代码行数:7,代码来源:listings.py


示例3: __init__

    def __init__(self, regex, markdown_instance=None, syntax=None, **kwargs):
        MooseMarkdownCommon.__init__(self, **kwargs)
        Pattern.__init__(self, regex, markdown_instance)

        self._syntax = syntax

        # Error if the syntax was not supplied
        if not isinstance(self._syntax, dict):
            LOG.error("A dictionary of MooseApplicationSyntax objects must be supplied.")
开发者ID:mangerij,项目名称:moose,代码行数:9,代码来源:app_syntax.py


示例4: __init__

    def __init__(self, markdown_instance=None, **kwargs):
        MooseMarkdownCommon.__init__(self, **kwargs)
        Preprocessor.__init__(self, markdown_instance)

        # Import the directly defined globals
        self._globals = kwargs.pop('globals', dict())

        # Add the defined globals from the supplied file(s)
        for filename in kwargs.pop('import'):
            self._globals.update(MooseDocs.yaml_load(os.path.join(MooseDocs.ROOT_DIR, filename)))
开发者ID:aeslaughter,项目名称:moose,代码行数:10,代码来源:global.py


示例5: defaultSettings

 def defaultSettings():
     """GoogleChartBase settings."""
     settings = MooseMarkdownCommon.defaultSettings()
     settings['caption'] = (None, "The caption to place after the float heading and number.")
     settings['counter'] = ('figure', "The name of global counter to utilized for numbering.")
     settings['csv'] = (None, "The name of the CSV file to load.")
     return settings
开发者ID:aeslaughter,项目名称:moose,代码行数:7,代码来源:gchart.py


示例6: defaultSettings

 def defaultSettings():
     settings = MooseMarkdownCommon.defaultSettings()
     settings['strip-header'] = (True, "When True the MOOSE header is removed for display.")
     settings['caption'] = (None, "The text caption, if an empty string is provided a link to "
                                  "the filename is created, if None is provided no caption is "
                                  "applied, otherwise the text given is used.")
     settings['language'] = (None, "The language to utilize for providing syntax highlighting.")
     settings['link'] = (True, "Include a link to the filename in the caption.")
     settings['strip-extra-newlines'] = (True, "Removes extraneous new lines from the text.")
     settings['prefix'] = ('', "Text to include prior to the included text.")
     settings['suffix'] = ('', "Text to include after to the included text.")
     settings['indent'] = (0, "The level of indenting to apply to the included text.")
     settings['strip-leading-whitespace'] = (False, "When True leading white-space is removed "
                                                    "from the included text.")
     settings['counter'] = ('listing', "The counter group to associate wit this command.")
     settings['line'] = (None, "A portion of text that unique identifies a single line to "
                               "include.")
     settings['start'] = (None, "A portion of text that unique identifies the starting "
                                "location for including text, if not provided the beginning "
                                "of the file is utilized.")
     settings['end'] = (None, "A portion of text that unique identifies the ending location "
                              "for including text, if not provided the end of the file is "
                              "used. By default this line is not included in the display.")
     settings['include-start'] = (True, "When False the texted captured by the 'start' setting "
                                        "is excluded in the displayed text.")
     settings['include-end'] = (False, "When True the texted captured by the 'end' setting is "
                                       "included in the displayed text.")
     settings['pre-style'] = ("overflow-y:scroll;max-height:350px",
                              "Style attributes to apply to the code area.")
     return settings
开发者ID:zachmprince,项目名称:moose,代码行数:30,代码来源:listings.py


示例7: defaultSettings

 def defaultSettings():
     settings = MooseMarkdownCommon.defaultSettings()
     settings['id'] = (None, "The id to utilize for the generated table. If not provided, " \
                             "the command will be used.")
     settings['caption'] = (None, "The title to place above the generated table. If not " \
                                  "provided it will be generated using the command.")
     settings['counter'] = ('table', "The name of the float to associate the generated table.")
     return settings
开发者ID:mangerij,项目名称:moose,代码行数:8,代码来源:devel.py


示例8: defaultSettings

 def defaultSettings():
     """Default settings for MooseSyntaxBase."""
     settings = MooseMarkdownCommon.defaultSettings()
     settings['actions'] = (True, "Enable/disable action syntax lookup (this is used for "
                                  "shared syntax such as BCs/Pressure).")
     settings['objects'] = (True, "Enable/disable MooseObject syntax lookup (this is used for "
                                  "shared syntax such as BCs/Pressure).")
     settings['syntax'] = (True, "Enable/disable SyntaxNode lookup (this is needed for shared "
                                 "syntax).")
     return settings
开发者ID:zachmprince,项目名称:moose,代码行数:10,代码来源:app_syntax.py


示例9: defaultSettings

 def defaultSettings():
     """Settings for SQARequirement"""
     settings = MooseMarkdownCommon.defaultSettings()
     settings['title'] = ('', "Title to assign to the list of items.")
     settings['require-markdown'] = (False, "")
     settings['status'] = (False, "When enabled with 'require-markdown' the status of the " \
                                  "page is added to the list.")
     settings['markdown-folder'] = ('', "When supplied the value provided should be a " \
                                        "directory relative to the repository root directory " \
                                        "where the required files are located " \
                                        "(require-markdown must be enabled).")
     return settings
开发者ID:zachmprince,项目名称:moose,代码行数:12,代码来源:sqa.py


示例10: getItems

 def getItems(filename, key):
     """
     Extract the matrix items from a markdown file.
     """
     out = collections.defaultdict(list)
     with open(filename) as fid:
         for match in SQAInputTags.RE.finditer(fid.read()):
             if key == match.group('key'):
                 options = dict(title='')
                 settings = MooseMarkdownCommon.getSettingsHelper(options,
                                                                  match.group('settings'),
                                                                  legacy_style=False)
                 title = settings['title']
                 for item in match.group('items').split('\n'):
                     tag_id, text = re.split(r'\s+', item.strip(), maxsplit=1)
                     out[title].append((tag_id, text))
     return out
开发者ID:zachmprince,项目名称:moose,代码行数:17,代码来源:sqa.py


示例11: __init__

 def __init__(self, parser, **kwargs):
     MooseMarkdownCommon.__init__(self, **kwargs)
     BlockProcessor.__init__(self, parser)
开发者ID:zachmprince,项目名称:moose,代码行数:3,代码来源:css.py


示例12: defaultSettings

 def defaultSettings():
     """Settings for AdmonitionBlock"""
     settings = MooseMarkdownCommon.defaultSettings()
     return settings
开发者ID:aeslaughter,项目名称:moose,代码行数:4,代码来源:admonition.py


示例13: __init__

    def __init__(self, markdown_instance=None, **kwargs):
        MooseMarkdownCommon.__init__(self, **kwargs)
        Pattern.__init__(self, self.RE, markdown_instance)

        # Load the yaml data containing package information
        self.package = MooseDocs.yaml_load(kwargs.pop('package_file'))
开发者ID:mangerij,项目名称:moose,代码行数:6,代码来源:devel.py


示例14: __init__

 def __init__(self, markdown_instance=None, syntax=None, **kwargs):
     MooseMarkdownCommon.__init__(self, **kwargs)
     Pattern.__init__(self, self.RE, markdown_instance)
     self._syntax = syntax
     self._install = kwargs.get('install')
开发者ID:zachmprince,项目名称:moose,代码行数:5,代码来源:app_syntax.py


示例15: __init__

 def __init__(self, markdown_instance=None, **kwargs):
     MooseMarkdownCommon.__init__(self, **kwargs)
     Preprocessor.__init__(self, markdown_instance)
     self._macro_files = kwargs.pop('macro_files', None)
     self._bibtex = None
     self._citations = []
开发者ID:mangerij,项目名称:moose,代码行数:6,代码来源:bibtex.py


示例16: defaultSettings

 def defaultSettings():
     """MooseTableProcessor settings."""
     settings = MooseMarkdownCommon.defaultSettings()
     settings['caption'] = (None, "The caption to place after the float heading and number.")
     settings['counter'] = ('table', "The name of global counter to utilized for numbering.")
     return settings
开发者ID:aeslaughter,项目名称:moose,代码行数:6,代码来源:tables.py


示例17: __init__

 def __init__(self, markdown_instance=None, **kwargs):
     MooseMarkdownCommon.__init__(self, **kwargs)
     TableProcessor.__init__(self, markdown_instance.parser)
开发者ID:aeslaughter,项目名称:moose,代码行数:3,代码来源:tables.py


示例18: __init__

 def __init__(self, markdown_instance=None, **kwargs):
     MooseMarkdownCommon.__init__(self, **kwargs)
     BlockProcessor.__init__(self, markdown_instance.parser)
     self.markdown = markdown_instance
开发者ID:aeslaughter,项目名称:moose,代码行数:4,代码来源:admonition.py


示例19: __init__

 def __init__(self, markdown_instance=None, **kwargs):
     MooseMarkdownCommon.__init__(self)
     Preprocessor.__init__(self, markdown_instance)
     self.__database = None
     self._template_args = kwargs
开发者ID:zachmprince,项目名称:moose,代码行数:5,代码来源:sqa.py


示例20: __init__

 def __init__(self, markdown_instance=None, **kwargs):
     MooseMarkdownCommon.__init__(self, **kwargs)
     Pattern.__init__(self, self.RE, markdown_instance)
开发者ID:zachmprince,项目名称:moose,代码行数:3,代码来源:refs.py



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python MountPoints.MountPoints类代码示例发布时间:2022-05-24
下一篇:
Python process.client函数代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap