diff options
| author | Georg Brandl <georg@python.org> | 2010-01-07 17:56:09 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-01-07 17:56:09 +0100 |
| commit | cbfa4e8acfa7ec1b81dbac4afca8b498ef96569a (patch) | |
| tree | 1e9354e3f8e01164bddf751f2a02858e1c2d2c77 /sphinx/themes/basic/layout.html | |
| parent | 6aaac900333341f58ca319ee0850e20af4214093 (diff) | |
| download | sphinx-cbfa4e8acfa7ec1b81dbac4afca8b498ef96569a.tar.gz | |
The ``html_sidebars`` config value can now contain patterns as keys, and the values can be lists that explicitly select which sidebar templates should be rendered.
That means that the builtin sidebar contents can be included only selectively.
Diffstat (limited to 'sphinx/themes/basic/layout.html')
| -rw-r--r-- | sphinx/themes/basic/layout.html | 50 |
1 files changed, 3 insertions, 47 deletions
diff --git a/sphinx/themes/basic/layout.html b/sphinx/themes/basic/layout.html index d86da2cb..97b68f8a 100644 --- a/sphinx/themes/basic/layout.html +++ b/sphinx/themes/basic/layout.html @@ -46,53 +46,9 @@ </a></p> {%- endif %} {%- endblock %} - {%- block sidebartoc %} - {%- if display_toc %} - <h3><a href="{{ pathto(master_doc) }}">{{ _('Table Of Contents') }}</a></h3> - {{ toc }} - {%- endif %} - {%- endblock %} - {%- block sidebarrel %} - {%- if prev %} - <h4>{{ _('Previous topic') }}</h4> - <p class="topless"><a href="{{ prev.link|e }}" - title="{{ _('previous chapter') }}">{{ prev.title }}</a></p> - {%- endif %} - {%- if next %} - <h4>{{ _('Next topic') }}</h4> - <p class="topless"><a href="{{ next.link|e }}" - title="{{ _('next chapter') }}">{{ next.title }}</a></p> - {%- endif %} - {%- endblock %} - {%- block sidebarsourcelink %} - {%- if show_source and has_source and sourcename %} - <h3>{{ _('This Page') }}</h3> - <ul class="this-page-menu"> - <li><a href="{{ pathto('_sources/' + sourcename, true)|e }}" - rel="nofollow">{{ _('Show Source') }}</a></li> - </ul> - {%- endif %} - {%- endblock %} - {%- if customsidebar %} - {% include customsidebar %} - {%- endif %} - {%- block sidebarsearch %} - {%- if pagename != "search" %} - <div id="searchbox" style="display: none"> - <h3>{{ _('Quick search') }}</h3> - <form class="search" action="{{ pathto('search') }}" method="get"> - <input type="text" name="q" size="18" /> - <input type="submit" value="{{ _('Go') }}" /> - <input type="hidden" name="check_keywords" value="yes" /> - <input type="hidden" name="area" value="default" /> - </form> - <p class="searchtip" style="font-size: 90%"> - {{ _('Enter search terms or a module, class or function name.') }} - </p> - </div> - <script type="text/javascript">$('#searchbox').show(0);</script> - {%- endif %} - {%- endblock %} + {%- for sidebar in sidebars %} + {%- include sidebar %} + {%- endfor %} </div> </div> {%- endif %}{% endif %} |
