class compilerDoc::DocChapterRenderer
sys::Obj compilerDoc::DocRenderer compilerDoc::DocChapterRenderer
Renders DocChapter documents
Chapter
<h1>
<span>{chapter.num}<span> {chapter.title}
</h1>
... // chapter fandoc
Chapter Nav
<ul class='chapter-nav'>
<li class='prev'><a>{prev.title}</a></li> // if available
<li class='next'><a>{next.title}</a></li> // if available
</ul>
Table of Contents
<h3><a>{pod.name}</a></h3>
<h4><a>{part.name}</a></h4> // if available
<ol>
<li><a>{chapter.title}</a></li>
<li><a>{chapter.title}</a>
<ol>
<li><a>{heading.name}</a></li>
</ol>
</li>
</ol>
- chapter
-
const DocChapter chapterChapter document to renderer
- make
-
new make(DocEnv env, WebOutStream out, DocChapter doc) - writeBody
-
virtual Void writeBody()Write chapter body.
- writeContent
-
virtual override Void writeContent() -
virtual Void writeNav()Write chapter prev/next navigation.
- writeToc
-
virtual Void writeToc()Write out chapter table of contents for pod.