generate_innodoc¶
This is the final step to generate innoDoc content from Mintmod input.
Load pandoc output from single JSON file.
Generate a section tree from headings.
Create a mapping between mintmod section IDs and section paths. (a)
Create a mapping between element IDs and section paths. (b)
Rewrite all links by using (a) and (b).
Save individual sections to innoDoc-specific directory structure.
Generate a
manifest.yml
.Removes single JSON file.
-
class
generate_innodoc.
CreateMapOfIds
(sections)[source]¶ Create a mapping between link IDs and section path.
-
class
generate_innodoc.
CreateMapOfSectionIds
(sections)[source]¶ Create mapping between mintmod section id and section path.
-
class
generate_innodoc.
ExtractSectionTree
(nodes, level)[source]¶ Generate section tree from a flat document structure.
-
class
generate_innodoc.
GenerateInnodoc
(debug=False)[source]¶ Main class for generate_innodoc postflight filter.
-
LANGKEY
= 'languages'¶ Languages key in manifest.yml
-
-
generate_innodoc.
MAX_LEVELS
= 3¶ Max. depth of headers to consider when splitting sections