summaryrefslogtreecommitdiffstats
path: root/clang/docs/index.rst
diff options
context:
space:
mode:
authorSean Silva <silvas@purdue.edu>2013-01-02 21:50:48 +0000
committerSean Silva <silvas@purdue.edu>2013-01-02 21:50:48 +0000
commitaaa78eefe78381477fbad711526f91d6a85c44bc (patch)
tree3ba619b332adad0343388560c2aa0ab3ce66f468 /clang/docs/index.rst
parent89730ce9ee3667d2405cee02e6eb0feec44c54ec (diff)
downloadbcm5719-llvm-aaa78eefe78381477fbad711526f91d6a85c44bc.tar.gz
bcm5719-llvm-aaa78eefe78381477fbad711526f91d6a85c44bc.zip
docs: Take advantage of extra level of headings.
The way Sphinx treats the "top-level" adornments is weird. It usually uses the first top-level adornment as the page title, even if the top-level adornment is just one "section" out of many (i.e. if the first section is "Introduction", then it will make the page title be "Introduction"). This behavior can be overriden by using an explicit `.. title::` directive to set the title. Since the Sphinx stylesheet that Clang is currently using ('haiku') nicely puts the document title at the top of the page in the header, this weird default behavior was resulting in a redundant "title" in the body content. Getting rid of this redundant level of headings effectively "exposes" one more level of heading from the stylesheet to which now makes the real "sections" more distinct. llvm-svn: 171417
Diffstat (limited to 'clang/docs/index.rst')
-rw-r--r--clang/docs/index.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/docs/index.rst b/clang/docs/index.rst
index 6436beeeb09..55f714239c4 100644
--- a/clang/docs/index.rst
+++ b/clang/docs/index.rst
@@ -3,8 +3,7 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
-Welcome to Clang's documentation!
-=================================
+.. title:: Welcome to Clang's documentation!
.. toctree::
:maxdepth: 1
@@ -12,7 +11,7 @@ Welcome to Clang's documentation!
ReleaseNotes
Using Clang as a Compiler
--------------------------
+=========================
.. toctree::
:maxdepth: 1
@@ -24,7 +23,7 @@ Using Clang as a Compiler
MemorySanitizer
Using Clang as a Library
-------------------------
+========================
.. toctree::
:maxdepth: 1
@@ -41,7 +40,7 @@ Using Clang as a Library
JSONCompilationDatabase
Design Documents
-----------------
+================
.. toctree::
:maxdepth: 1
OpenPOWER on IntegriCloud