summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSurya K <kasturisurya@gmail.com>2013-05-19 15:30:25 +0530
committerSurya K <kasturisurya@gmail.com>2013-05-19 15:30:25 +0530
commit8b4fab6c1d6c6d515dfb47d2170076fb3c164f13 (patch)
treee56fcd51ade8b60789ff180f350e9da41fa5943e
parent0c0196105ecf4df9f83a08808d77e8f984885202 (diff)
downloadscipy-sphinx-theme-8b4fab6c1d6c6d515dfb47d2170076fb3c164f13.tar.gz
DEV: doctype changed to html5, and elements migrated to html5
1. doctype changed 2. meta tag changed 3. <link /> changed to <link > as required by html5
-rw-r--r--_theme/scipy/layout.html33
1 files changed, 16 insertions, 17 deletions
diff --git a/_theme/scipy/layout.html b/_theme/scipy/layout.html
index c3b709c..66a6664 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 %}
@@ -109,16 +108,16 @@
<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">
<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 +128,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 %}