Ver Fonte

Add captions to TOC tree in docs

Dariusz Markowicz há 8 anos atrás
pai
commit
cc8c99a687
1 ficheiros alterados com 8 adições e 12 exclusões
  1. 8 12
      Resources/doc/index.rst

+ 8 - 12
Resources/doc/index.rst

@@ -18,10 +18,9 @@ The demo website can be found at http://demo.sonata-project.org.
 * `SonataPageBundle <https://github.com/sonata-project/SonataPageBundle>`_: a page (CMS like) bundle
 * `SonataPageBundle <https://github.com/sonata-project/SonataPageBundle>`_: a page (CMS like) bundle
 * `SonataUserBundle <https://github.com/sonata-project/SonataUserBundle>`_: integration of FOSUserBundle and SonataAdminBundle
 * `SonataUserBundle <https://github.com/sonata-project/SonataUserBundle>`_: integration of FOSUserBundle and SonataAdminBundle
 
 
-Getting Started
----------------
-
 .. toctree::
 .. toctree::
+    :caption: Getting Started
+    :name: getting-started
     :maxdepth: 1
     :maxdepth: 1
     :numbered:
     :numbered:
 
 
@@ -30,10 +29,9 @@ Getting Started
     getting_started/the_form_view
     getting_started/the_form_view
     getting_started/the_list_view
     getting_started/the_list_view
 
 
-Reference Guide
----------------
-
 .. toctree::
 .. toctree::
+   :caption: Reference Guide
+   :name: reference-guide
    :maxdepth: 1
    :maxdepth: 1
    :numbered:
    :numbered:
 
 
@@ -57,10 +55,9 @@ Reference Guide
    reference/troubleshooting
    reference/troubleshooting
    reference/breadcrumbs
    reference/breadcrumbs
 
 
-Advanced Options
-----------------
-
 .. toctree::
 .. toctree::
+   :caption: Advanced Options
+   :name: advanced-options
    :maxdepth: 1
    :maxdepth: 1
    :numbered:
    :numbered:
 
 
@@ -75,10 +72,9 @@ Advanced Options
    reference/annotations
    reference/annotations
    reference/preview_mode
    reference/preview_mode
 
 
-Cookbook
---------
-
 .. toctree::
 .. toctree::
+   :caption: Cookbook
+   :name: cookbook
    :maxdepth: 1
    :maxdepth: 1
    :numbered:
    :numbered: