summaryrefslogtreecommitdiff
path: root/doc/_templates
diff options
context:
space:
mode:
authorTommi Virtanen <tommi.virtanen@dreamhost.com>2011-08-30 11:26:56 -0700
committerTommi Virtanen <tommi.virtanen@dreamhost.com>2011-08-30 11:26:56 -0700
commitc85c2f7535306b895a5b6c9dc6a96af63450e9f8 (patch)
tree2ed1b6a723f0605fd4ef726a99d6766c356805c3 /doc/_templates
parentae552539e338b6399a909a0f8e53dc3ceed0a3cf (diff)
downloadceph-c85c2f7535306b895a5b6c9dc6a96af63450e9f8.tar.gz
doc: Adjust how table of contents is presented.
Signed-off-by: Tommi Virtanen <tommi.virtanen@dreamhost.com>
Diffstat (limited to 'doc/_templates')
-rw-r--r--doc/_templates/smarttoc.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/_templates/smarttoc.html b/doc/_templates/smarttoc.html
new file mode 100644
index 00000000000..eb7444afae6
--- /dev/null
+++ b/doc/_templates/smarttoc.html
@@ -0,0 +1,13 @@
+{#
+ Sphinx sidebar template: smart table of contents.
+
+ Show a sidebar ToC that gives you a more global view of the
+ documentation, and not the confusing cur/prev/next that is the
+ default sidebar.
+
+ The ToC will open & collapse automatically to show the part of the
+ hierarchy you are in. Top-level items will always be visible.
+
+#}
+<h3><a href="{{ pathto(master_doc) }}">{{ _('Table Of Contents') }}</a></h3>
+{{ toctree(maxdepth=-1) }}