doc-rst: include index only in subproject AND html
authorMarkus Heiser <markus.heiser@darmarit.de>
Wed, 26 Oct 2016 06:23:16 +0000 (08:23 +0200)
committerJonathan Corbet <corbet@lwn.net>
Wed, 26 Oct 2016 23:25:08 +0000 (17:25 -0600)
The index should only be included if the build of the sub-folder is done
with the html-builder (HTML output).

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/80211/index.rst
Documentation/admin-guide/index.rst
Documentation/gpu/index.rst
Documentation/process/index.rst

index 90bba47..af21085 100644 (file)
@@ -9,7 +9,7 @@ Linux 802.11 Driver Developer's Guide
    mac80211
    mac80211-advanced
 
-.. only::  subproject
+.. only::  subproject and html
 
    Indices
    =======
index 4e5abbb..fb779e6 100644 (file)
@@ -32,3 +32,11 @@ Contents:
    java
    bad-memory
    basic-profiling
+
+.. only::  subproject and html
+
+   Indices
+   =======
+
+   * :ref:`genindex`
+
index be0dafc..367d7c3 100644 (file)
@@ -14,7 +14,7 @@ Linux GPU Driver Developer's Guide
    vga-switcheroo
    vgaarbiter
 
-.. only::  subproject
+.. only::  subproject and html
 
    Indices
    =======
index 6ee8187..cddf580 100644 (file)
@@ -30,3 +30,11 @@ Contents:
    volatile-considered-harmful
 
    development-process
+
+
+.. only::  subproject and html
+
+   Indices
+   =======
+
+   * :ref:`genindex`