From a91961284dd580e283cd1dc7bfa4b0b7e17228fc Mon Sep 17 00:00:00 2001
From: Eric Lippmann <eric.lippmann@netways.de>
Date: Fri, 23 May 2014 09:26:53 +0200
Subject: [PATCH] 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
---
 .../controllers/IndexController.php           | 26 +------------------
 .../views/scripts/index/index.phtml           |  5 ----
 2 files changed, 1 insertion(+), 30 deletions(-)

diff --git a/modules/doc/application/controllers/IndexController.php b/modules/doc/application/controllers/IndexController.php
index 299ae5c65..1911f0534 100644
--- a/modules/doc/application/controllers/IndexController.php
+++ b/modules/doc/application/controllers/IndexController.php
@@ -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
diff --git a/modules/doc/application/views/scripts/index/index.phtml b/modules/doc/application/views/scripts/index/index.phtml
index a178cc155..e69de29bb 100644
--- a/modules/doc/application/views/scripts/index/index.phtml
+++ b/modules/doc/application/views/scripts/index/index.phtml
@@ -1,5 +0,0 @@
-<h1>Icinga 2 Documentation</h1>
-<?= $this->partial('module/view.phtml', 'doc', array(
-    'toc'   => $toc,
-    'html'  => $html
-)); ?>
\ No newline at end of file