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 90bba476f44291a1a3e2e762fa14ceb677594c2a..af210859d3e10a4e78650d2b52cd5967dc0adfd4 100644 (file)
@@ -9,7 +9,7 @@ Linux 802.11 Driver Developer's Guide
    mac80211
    mac80211-advanced
 
-.. only::  subproject
+.. only::  subproject and html
 
    Indices
    =======
index 4e5abbb4bbd58d6323b9e4aaa475c43f371a4168..fb779e67097b9ef99cf94a0795e97ae36b7ecd39 100644 (file)
@@ -32,3 +32,11 @@ Contents:
    java
    bad-memory
    basic-profiling
+
+.. only::  subproject and html
+
+   Indices
+   =======
+
+   * :ref:`genindex`
+
index be0dafcf5556df17509a9d376e29e2800c14ca61..367d7c36b8e90469fdbd9aa6095646942ad7edf3 100644 (file)
@@ -14,7 +14,7 @@ Linux GPU Driver Developer's Guide
    vga-switcheroo
    vgaarbiter
 
-.. only::  subproject
+.. only::  subproject and html
 
    Indices
    =======
index 6ee818752474a2369840e5b5e0855869f60746a4..cddf580671e7ed8467ca84b5c72fe3e23a044266 100644 (file)
@@ -30,3 +30,11 @@ Contents:
    volatile-considered-harmful
 
    development-process
+
+
+.. only::  subproject and html
+
+   Indices
+   =======
+
+   * :ref:`genindex`