本文整理汇总了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;未经允许,请勿转载。 |
请发表评论