mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
f0b6a3557e
commit
2f1303a13b
@ -1,14 +0,0 @@
|
|||||||
<div class="controls">
|
|
||||||
<h1><?= $docName ?> documentation</h1>
|
|
||||||
</div>
|
|
||||||
<div class="content" data-base-target="_next">
|
|
||||||
<?= $this->partial(
|
|
||||||
'layout/menu.phtml',
|
|
||||||
'default',
|
|
||||||
array(
|
|
||||||
'items' => $docToc->getChildren(),
|
|
||||||
'sub' => false,
|
|
||||||
'url' => ''
|
|
||||||
)
|
|
||||||
) ?>
|
|
||||||
</div>
|
|
@ -23,17 +23,16 @@ class DocController extends ActionController
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Render a toc
|
* Populate toc
|
||||||
*
|
*
|
||||||
* @param string $path Path to the documentation
|
* @param string $path Path to the documentation
|
||||||
* @param string $name Name of the documentation
|
* @param string $name Name of the documentation
|
||||||
*/
|
*/
|
||||||
protected function renderToc($path, $name)
|
protected function populateToc($path, $name)
|
||||||
{
|
{
|
||||||
$parser = new DocParser($path);
|
$parser = new DocParser($path);
|
||||||
list($docHtml, $docToc) = $parser->getDocAndToc();
|
list($docHtml, $tocRenderer) = $parser->getDocAndToc();
|
||||||
$this->view->docToc = $docToc;
|
$this->view->tocRenderer = $tocRenderer;
|
||||||
$this->view->docName = $name;
|
$this->view->docName = $name;
|
||||||
$this->_helper->viewRenderer('partials/toc', null, true);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user