From dd6427019a637f45cffc3dcf8e568e0c447d61e9 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 27 May 2014 14:50:48 +0200 Subject: [PATCH] Doc: Add action to render the toc of Icinga Web 2's documentation refs #4820 --- .../application/controllers/IcingawebController.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/doc/application/controllers/IcingawebController.php b/modules/doc/application/controllers/IcingawebController.php index 90b1e23f4..f9e05cefd 100644 --- a/modules/doc/application/controllers/IcingawebController.php +++ b/modules/doc/application/controllers/IcingawebController.php @@ -2,12 +2,16 @@ // {{{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 { - 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'); } }