parent
96ea02e59f
commit
3aff91d204
|
@ -3,5 +3,5 @@
|
||||||
<h1><?= /** @type string $title */ $title ?></h1>
|
<h1><?= /** @type string $title */ $title ?></h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<?= /** @type \Icinga\Module\Doc\TocRenderer $toc */ $toc ?>
|
<?= /** @type \Icinga\Module\Doc\DocTocRenderer $toc */ $toc ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -38,7 +38,7 @@ class DocController extends ModuleActionController
|
||||||
protected function renderToc($path, $name, $url, array $urlParams = array())
|
protected function renderToc($path, $name, $url, array $urlParams = array())
|
||||||
{
|
{
|
||||||
$parser = new DocParser($path);
|
$parser = new DocParser($path);
|
||||||
$toc = new TocRenderer($parser->getDocTree()->getIterator());
|
$toc = new DocTocRenderer($parser->getDocTree()->getIterator());
|
||||||
$this->view->toc = $toc
|
$this->view->toc = $toc
|
||||||
->setUrl($url)
|
->setUrl($url)
|
||||||
->setUrlParams($urlParams);
|
->setUrlParams($urlParams);
|
||||||
|
|
|
@ -14,7 +14,7 @@ use RecursiveIteratorIterator;
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
class TocRenderer extends Renderer
|
class DocTocRenderer extends Renderer
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Content to render
|
* Content to render
|
Loading…
Reference in New Issue