Doc: Add action to render the toc of Icinga Web 2's documentation

refs #4820
This commit is contained in:
Eric Lippmann 2014-05-27 14:50:48 +02:00
parent 884e4c8e94
commit dd6427019a

View File

@ -2,12 +2,16 @@
// {{{ICINGA_LICENSE_HEADER}}} // {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}} // {{{ICINGA_LICENSE_HEADER}}}
use Icinga\Module\Doc\Controller as DocController; use Icinga\Application\Icinga;
use Icinga\Module\Doc\DocController;
class Doc_IcingawebController extends DocController class Doc_IcingawebController extends DocController
{ {
public function indexAction() /**
* View toc of Icinga Web 2's documentation
*/
public function tocAction()
{ {
$this->renderDocAndToc(); $this->renderToc(Icinga::app()->getApplicationDir('/../doc'), 'Icinga Web 2');
} }
} }