modules/doc: Add route 'modules/doc/icingaweb' to display Icinga Web 2's documentation
refs #4820
This commit is contained in:
parent
e6abe21fb8
commit
ce37c20736
|
@ -0,0 +1,13 @@
|
||||||
|
<?php
|
||||||
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
|
||||||
|
use Icinga\Module\Doc\Controller as DocController;
|
||||||
|
|
||||||
|
class Doc_IcingawebController extends DocController
|
||||||
|
{
|
||||||
|
public function indexAction()
|
||||||
|
{
|
||||||
|
$this->populateView();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
<h1>Icinga Web 2 Documentation</h1>
|
||||||
|
<?= $this->partial(
|
||||||
|
'partials/docandtoc.phtml',
|
||||||
|
'doc',
|
||||||
|
array(
|
||||||
|
'docToc' => $docToc,
|
||||||
|
'docHtml' => $docHtml
|
||||||
|
)
|
||||||
|
); ?>
|
Loading…
Reference in New Issue