for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""
SDoc
Copyright 2016 Set Based IT Consultancy
Licence MIT
# ----------------------------------------------------------------------------------------------------------------------
from sdoc.sdoc2.NodeStore import NodeStore
from sdoc.sdoc2.node.HeadingNode import HeadingNode
class SectionNode(HeadingNode):
SDoc2 node for sections.
# ------------------------------------------------------------------------------------------------------------------
def __init__(self, io, options, argument):
Object constructor.
:param None|cleo.styles.output_style.OutputStyle io: The IO object.
:param dict[str,str] options: The options of this section.
:param str argument: The title of this section.
super().__init__(io, 'section', options, argument)
def get_command(self):
Returns the command of this node, i.e. section.
:rtype: str
return 'section'
def get_hierarchy_level(self, parent_hierarchy_level=-1):
Returns 2.
:rtype: int
return 2
NodeStore.register_inline_command('section', SectionNode)