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:
Eric Lippmann 2014-05-23 09:26:53 +02:00
parent 6ff5a986dd
commit a91961284d
2 changed files with 1 additions and 30 deletions

View File

@ -1,37 +1,13 @@
<?php
// @codingStandardsIgnoreStart
// {{{ICINGA_LICENSE_HEADER}}}
// {{{ICINGA_LICENSE_HEADER}}}
use Icinga\Module\Doc\Controller as DocController;
use Icinga\Module\Doc\DocParser;
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()
{
$this->populateView();
}
}
// @codingStandardsIgnoreEnd

View File

@ -1,5 +0,0 @@
<h1>Icinga 2 Documentation</h1>
<?= $this->partial('module/view.phtml', 'doc', array(
'toc' => $toc,
'html' => $html
)); ?>