Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move page contents into the sidebar.

Moving them into the sidebar should hopefully make things simpler to
find and use.
  • Loading branch information...
commit c5ae07b64cb8d741bd6f4b9e5cb08fe0a5e4ddc3 1 parent 1b2769f
@markstory markstory authored
View
2  config/all.py
@@ -120,7 +120,7 @@
# Custom sidebar templates, maps document names to template names.
html_sidebars = {
- '**' : ['globaltoc.html']
+ '**' : ['globaltoc.html', 'localtoc.html']
}
# Additional templates that should be rendered to pages, maps page names to
View
1  themes/cakephp/layout.html
@@ -112,7 +112,6 @@
<div class="content row">
<div class="document columns nine push-three">
<div class="body">
- {% include 'localtoc.html' %}
{% block body %} {% endblock %}
</div>
</div>
View
7 themes/cakephp/localtoc.html
@@ -7,8 +7,7 @@
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
-<a href="#" id="page-contents-button" class="red button">{{ _('Page contents') }}</a>
-<div id="page-contents" class="panel flyout">
-{{ toc }}
+<div class="page-contents">
+ <h3>Page contents</h3>
+ {{ toc }}
</div>
-
View
28 themes/cakephp/static/default.css
@@ -485,34 +485,8 @@ dt tt {
font-size: 14px;
}
-/* -- page contents -- */
-#page-contents-button {
- float: right;
- padding: 7px 15px;
-}
-.body .panel {
- padding: 0;
- position: absolute;
- top: 0px;
- right: 0px;
- width: 100%;
- display: none;
- box-sizing: border-box;
-}
-.panel.flyout > ul {
- list-style: none;
- margin: 15px;
-}
-.panel.flyout li a {
- font-size: 16px;
- font-family: MuseoSlab500, Helvetica, Arial;
- color: #C92434;
-}
-.panel.flyout li li a {
- color: #417282;
-}
-
/* -- Sidebar -- */
+.page-contents > ul,
#sidebar-navigation > ul {
margin-left: 0;
}
Please sign in to comment.
Something went wrong with that request. Please try again.