mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
71615151a4
commit
884e4c8e94
@ -22,4 +22,19 @@ class DocController extends ActionController
|
|||||||
$this->view->docName = $module === null ? 'Icinga Web 2' : ucfirst($module);
|
$this->view->docName = $module === null ? 'Icinga Web 2' : ucfirst($module);
|
||||||
$this->_helper->viewRenderer('partials/docandtoc', null, true);
|
$this->_helper->viewRenderer('partials/docandtoc', null, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Render a toc
|
||||||
|
*
|
||||||
|
* @param string $path Path to the documentation
|
||||||
|
* @param string
|
||||||
|
*/
|
||||||
|
protected function renderToc($path, $name)
|
||||||
|
{
|
||||||
|
$parser = new DocParser($path);
|
||||||
|
list($docHtml, $docToc) = $parser->getDocAndToc();
|
||||||
|
$this->view->docToc = $docToc;
|
||||||
|
$this->view->docName = $name;
|
||||||
|
$this->_helper->viewRenderer('partials/toc', null, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user