pkgcore.util.rst2devbook module

A docutils’s writer for DevBook format [1]

class pkgcore.util.rst2devbook.DevBookTranslator(document: document, eclass: str)[source]

Bases: NodeVisitor

A docutils translator for DevBook.

astext() str[source]
depart_Text(node)[source]
depart_attribution(node)[source]
depart_block_quote(node)[source]
depart_bullet_list(node)[source]
depart_definition(node)[source]
depart_definition_list(node)[source]
depart_definition_list_item(node)[source]
depart_document(node)[source]
depart_emphasis(node)[source]
depart_enumerated_list(node)[source]
depart_line(node)[source]
depart_line_block(node)[source]
depart_list_item(node)[source]
depart_literal(node)[source]
depart_literal_block(node)[source]
depart_paragraph(node)[source]
depart_problematic(node)[source]
depart_reference(node)[source]
depart_section(node)[source]
depart_strong(node)[source]
depart_system_message(node)[source]
depart_term(node)[source]
depart_title(node)[source]
depart_title_reference(node)[source]
sections_tags = ('section', 'subsection', 'subsubsection')
visit_Text(node)[source]
visit_attribution(node)[source]
visit_block_quote(node)[source]
visit_bullet_list(node)[source]
visit_definition(node)[source]
visit_definition_list(node)[source]
visit_definition_list_item(node)[source]
visit_document(node)[source]
visit_emphasis(node)[source]
visit_enumerated_list(node)[source]
visit_line(node)[source]
visit_line_block(node)[source]
visit_list_item(node)[source]
visit_literal(node)[source]
visit_literal_block(node)[source]
visit_paragraph(node)[source]
visit_problematic(node)[source]
visit_reference(node)[source]
visit_section(node)[source]
visit_strong(node)[source]
visit_system_message(node)[source]
visit_term(node)[source]
visit_title(node)[source]
visit_title_reference(node)[source]
class pkgcore.util.rst2devbook.DevBookWriter(eclass)[source]

Bases: Writer

A docutils writer for DevBook.

translate()[source]

Call the translator to translate the document