class compilerDoc::DocChapterRenderer

sys::Obj
  compilerDoc::DocRenderer
    compilerDoc::DocChapterRenderer

Source

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 chapter

Source

Chapter document to renderer

make

new make(DocEnv env, WebOutStream out, DocChapter doc)

Source

writeBody

virtual Void writeBody()

Source

Write chapter body.

writeContent

virtual override Void writeContent()

Source

writeNav

virtual Void writeNav()

Source

Write chapter prev/next navigation.

writeToc

virtual Void writeToc()

Source

Write out chapter table of contents for pod.