summaryrefslogtreecommitdiff
path: root/_theme/scipy/layout.html
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2013-05-19 10:27:07 -0700
committerPauli Virtanen <pav@iki.fi>2013-05-19 10:27:07 -0700
commit685bf8cb5101dca5965f8afce120500b3ca04d07 (patch)
tree95d09a05af3cbcfd15e23d7d9a47e83ef9398e11 /_theme/scipy/layout.html
parent0c0196105ecf4df9f83a08808d77e8f984885202 (diff)
parent70ffc83c5e2aa76b144e9845281d4224179d8743 (diff)
downloadscipy-sphinx-theme-685bf8cb5101dca5965f8afce120500b3ca04d07.tar.gz
Merge pull request #1 from ksurya/cleanup
ENH: HTML Cleanup
Diffstat (limited to '_theme/scipy/layout.html')
-rw-r--r--_theme/scipy/layout.html65
1 files changed, 19 insertions, 46 deletions
diff --git a/_theme/scipy/layout.html b/_theme/scipy/layout.html
index c3b709c..39fc75b 100644
--- a/_theme/scipy/layout.html
+++ b/_theme/scipy/layout.html
@@ -8,8 +8,7 @@
:license: BSD, see LICENSE for details.
#}
{%- block doctype -%}
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html>
{%- endblock %}
{%- set url_root = pathto('', 1) %}
{%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
@@ -56,7 +55,7 @@
{%- block sidebarlogo %}
{%- if logo %}
<p class="logo"><a href="{{ pathto(master_doc) }}">
- <img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
+ <img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo">
</a></p>
{%- endif %}
{%- endblock %}
@@ -97,9 +96,8 @@
HAS_SOURCE: {{ has_source|lower }}
};
</script>
- <script type="text/javascript" src="{{ pathto('_static/js/bootstrap.min.js', 1) }}"></script>
<script type="text/javascript" src="{{ pathto('_static/js/jquery.min.js', 1) }}"></script>
- <script type="text/javascript" src="{{ pathto('_static/js/jquery-ui.min.js', 1) }}"></script>
+ <script type="text/javascript" src="{{ pathto('_static/js/bootstrap.min.js', 1) }}"></script>
{%- for scriptfile in script_files %}
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
{%- endfor %}
@@ -108,17 +106,16 @@
{%- macro css() %}
<link rel="stylesheet" type="text/css" href="{{ pathto('_static/css/spc-bootstrap.css', 1) }}">
<link rel="stylesheet" type="text/css" href="{{ pathto('_static/css/spc-extend.css', 1) }}">
- <link rel="stylesheet" type="text/css" href="{{ pathto('_static/css/jquery-ui.css', 1) }}">
- <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
- <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
+ <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" >
+ <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" >
{%- for cssfile in css_files %}
- <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" />
+ <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" >
{%- endfor %}
{%- endmacro %}
-<html xmlns="http://www.w3.org/1999/xhtml">
+<html>
<head>
- <meta http-equiv="Content-Type" content="text/html; charset={{ encoding }}" />
+ <meta charset="{{ encoding }}">
{{ metatags }}
{%- block htmltitle %}
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
@@ -129,34 +126,34 @@
{%- if use_opensearch %}
<link rel="search" type="application/opensearchdescription+xml"
title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
- href="{{ pathto('_static/opensearch.xml', 1) }}"/>
+ href="{{ pathto('_static/opensearch.xml', 1) }}">
{%- endif %}
{%- if favicon %}
- <link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
+ <link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}">
{%- endif %}
{%- endif %}
{%- block linktags %}
{%- if hasdoc('about') %}
- <link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
+ <link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" >
{%- endif %}
{%- if hasdoc('genindex') %}
- <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
+ <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" >
{%- endif %}
{%- if hasdoc('search') %}
- <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
+ <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" >
{%- endif %}
{%- if hasdoc('copyright') %}
- <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
+ <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" >
{%- endif %}
- <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}" />
+ <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}" >
{%- if parents %}
- <link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}" />
+ <link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}" >
{%- endif %}
{%- if next %}
- <link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}" />
+ <link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}" >
{%- endif %}
{%- if prev %}
- <link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}" />
+ <link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}" >
{%- endif %}
{%- endblock %}
{%- block extrahead %} {% endblock %}
@@ -167,7 +164,7 @@
<div class="container">
<div class="top-scipy-org-logo-header">
<a href="{{ pathto('index') }}">
- <img border=0 alt="SciPy" src="{{ pathto('_static/img/scipy_org_logo.gif', 1) }}"></a>
+ <img style="border: 0;" alt="SciPy" src="{{ pathto('_static/img/scipy_org_logo.gif', 1) }}"></a>
</div>
</div>
</div>
@@ -268,29 +265,5 @@
</div>
</div>
{%- endblock %}
-
-<script type="text/javascript">
- $('.dropdown-toggle').dropdown()
-</script>
-
-<script>
-$(document).ready(function()
-{
- //Handles menu drop down
- $('.dropdown-menu').find('form').click(function (e) {
- e.stopPropagation();
- });
- });
-</script>
-
-<script type="text/javascript">
- //handles accordion arrow-up and down in pages
- $('.accordion-group').collapse();
- $('.accordion-group').on('show hide', function(e)
- {
- $(e.target).siblings('.accordion-heading').find('.accordion-toggle i').toggleClass('icon-arrow-down icon-arrow-up', 200);
- });
-</script>
-
</body>
</html>