feat(write): Add content nodes support
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
615c377623
commit
a2272230e2
1 changed files with 46 additions and 0 deletions
46
src/write/nodes/root_node.cr
Normal file
46
src/write/nodes/root_node.cr
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
|
||||||
|
require "./module"
|
||||||
|
|
||||||
|
module DocMachine::Write::Nodes
|
||||||
|
class RootNode
|
||||||
|
property context : String = ""
|
||||||
|
property audience : String = ""
|
||||||
|
property goals : String = ""
|
||||||
|
property constraints : String = ""
|
||||||
|
property chapters = [] of ChapterNode
|
||||||
|
|
||||||
|
def build_chapters()
|
||||||
|
[] of ChapterNode
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class ChapterNode
|
||||||
|
property sections = [] of SectionNode
|
||||||
|
|
||||||
|
def build_sections()
|
||||||
|
[] of SectionNode
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SectionNode
|
||||||
|
property subsections = [] of SubsectionNode
|
||||||
|
|
||||||
|
def build_subsections()
|
||||||
|
[] of SubsectionNode
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class SubsectionNode
|
||||||
|
property content = [] of String
|
||||||
|
|
||||||
|
def build_content()
|
||||||
|
[] of String
|
||||||
|
end
|
||||||
|
|
||||||
|
def fix_content()
|
||||||
|
[] of String
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue