mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 15:54:03 +02:00
modules/doc: Show nothing on index yet
Before, doc's IndexController::indexAction() showed the documentation of Icinga Web 2 but index should rather show an overview of available docs. refs #4820
This commit is contained in:
parent
6ff5a986dd
commit
a91961284d
@ -1,37 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
// @codingStandardsIgnoreStart
|
|
||||||
// {{{ICINGA_LICENSE_HEADER}}}
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
// {{{ICINGA_LICENSE_HEADER}}}
|
// {{{ICINGA_LICENSE_HEADER}}}
|
||||||
|
|
||||||
use Icinga\Module\Doc\Controller as DocController;
|
use Icinga\Module\Doc\Controller as DocController;
|
||||||
|
|
||||||
use Icinga\Module\Doc\DocParser;
|
|
||||||
|
|
||||||
class Doc_IndexController extends DocController
|
class Doc_IndexController extends DocController
|
||||||
{
|
{
|
||||||
protected $parser;
|
|
||||||
|
|
||||||
|
|
||||||
public function init()
|
|
||||||
{
|
|
||||||
$module = null;
|
|
||||||
$this->parser = new DocParser($module);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function tocAction()
|
|
||||||
{
|
|
||||||
// Temporary workaround
|
|
||||||
list($html, $toc) = $this->parser->getDocumentation();
|
|
||||||
$this->view->toc = $toc;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Display the application's documentation
|
|
||||||
*/
|
|
||||||
public function indexAction()
|
public function indexAction()
|
||||||
{
|
{
|
||||||
$this->populateView();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// @codingStandardsIgnoreEnd
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
<h1>Icinga 2 Documentation</h1>
|
|
||||||
<?= $this->partial('module/view.phtml', 'doc', array(
|
|
||||||
'toc' => $toc,
|
|
||||||
'html' => $html
|
|
||||||
)); ?>
|
|
Loading…
x
Reference in New Issue
Block a user