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 $name Name of the documentation
|
||||
*/
|
||||
protected function renderToc($path, $name)
|
||||
protected function populateToc($path, $name)
|
||||
{
|
||||
$parser = new DocParser($path);
|
||||
list($docHtml, $docToc) = $parser->getDocAndToc();
|
||||
$this->view->docToc = $docToc;
|
||||
list($docHtml, $tocRenderer) = $parser->getDocAndToc();
|
||||
$this->view->tocRenderer = $tocRenderer;
|
||||
$this->view->docName = $name;
|
||||
$this->_helper->viewRenderer('partials/toc', null, true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue