docdown package¶
Subpackages¶
Submodules¶
docdown.docdown module¶
docdown.include module¶
-
class
docdown.include.
IncludePreprocessor
(root_directory=u'', current_directory=u'', asset_directory=u'', extension_map=None, **kwargs)[source]¶ Bases:
markdown.preprocessors.Preprocessor
-
find_file_path
(file_name)[source]¶ Find path to the file within self.root_directory
Start at self.current_directory/self.asset_directory/file_name looking for file_name. Recursively strip one directory level off of self.current_directory to see if self.asset_directory/file_name exists there up until the path matched self.root_directory
-
docdown.links module¶
-
class
docdown.links.
DocDownLinkPattern
(link_map=None, **kwargs)[source]¶ Bases:
markdown.inlinepatterns.LinkPattern
docdown.media module¶
docdown.note_blocks module¶
note_blocks¶
docdown.note_blocks Markdown extension module
-
class
docdown.note_blocks.
NoteBlockPreprocessor
(prefix=u'', postfix=u'', tags=None, template_adapter=u'docdown.template_adapters.StringFormatAdapter', default_tag=u'', **kwargs)[source]¶ Bases:
docdown.docdown.TemplateRenderMixin
,markdown.preprocessors.Preprocessor
-
RE
= <_sre.SRE_Pattern object>¶
-
-
class
docdown.note_blocks.
NoteExtension
(**kwargs)[source]¶ Bases:
markdown.extensions.Extension
Renders a block of HTML with a title, svg image, and content to be displayed as a note. The svg image is rendered using.
Configuration Example: {
‘template_adapter’: ‘docdown.template_adapters.StringFormatAdapter’, ‘prefix’: (‘<div class=”{ tag }”>’
‘ <div class=”icon”>’ ‘ {% svg “{ svg }” %}’ ‘ <img class=”icon–pdf” src=”{% static “{ svg_path }” %}”’ ‘ </div>’ ‘ <h5>{ title }</h5>’ ‘</div>’),‘postfix’: ‘</div>’, ‘tags’: {
- ‘tag_name’: {
- ‘svg’: ‘standard/icon-must’, ‘svg_path’: ‘svg/standard/icon-must.svg’, ‘title’: ‘Must’
},
}
}
docdown.platform_section module¶
platform_section¶
docdown.platform_section Markdown extension module
-
class
docdown.platform_section.
PlatformSectionExtension
(**kwargs)[source]¶ Bases:
markdown.extensions.Extension
Renders a block of content if and only if the configured platform section is in the DocDown tag’s list of platform sections.
Configuration Example: {
‘platform_section’: ‘Android’,}
docdown.sequence module¶
-
class
docdown.sequence.
SequenceDiagramBlockPreprocessor
(media_url=None, prefix=u'', postfix=u'', template_adapter=u'docdown.template_adapters.StringFormatAdapter', **kwargs)[source]¶ Bases:
docdown.docdown.TemplateRenderMixin
,markdown.preprocessors.Preprocessor
-
RE
= <_sre.SRE_Pattern object>¶
-