Skip to content

Commit 5faf53f

Browse files
committed
Updated sphinx theme to match deis.io site, re #29.
1 parent b4dc254 commit 5faf53f

5 files changed

Lines changed: 29 additions & 22 deletions

File tree

docs/theme/deis/layout.html

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,41 @@
66
<head>
77
<meta charset="utf-8">
88
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
9-
<title> &raquo; Overview</title>
10-
<meta name="description" content="">
9+
<title>{{ meta['title'] if meta and meta['title'] else title }} - Deis Documentation</title>
10+
<meta name="description" content="{{ meta['description'] if meta }}">
11+
<meta name="keywords" content="{{ meta['keywords'] if meta }}" />
1112
<meta name="viewport" content="width=device-width, initial-scale=1.0">
12-
<link rel="stylesheet" href="http://deis.io/wp-content/themes/deis/css/bootstrap.css">
13-
<link rel="stylesheet" href="http://deis.io/wp-content/themes/deis/css/bootstrap-responsive.css">
14-
<link rel="stylesheet" href="http://deis.io/wp-content/themes/deis/css/main.css">
15-
<link rel="pingback" href="http://deis.io/xmlrpc.php" />
16-
<link rel="shortcut icon" href="http://deis.io/wp-content/themes/deis/img/favicon.ico"/>
17-
18-
19-
<script src="http://deis.io/wp-content/themes/deis/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
13+
<link rel="stylesheet" href="{{ pathto('_static/css/bootstrap.min.css', 1) }}" type="text/css">
14+
<link rel="stylesheet" href="{{ pathto('_static/css/main.css', 1) }}" type="text/css">
15+
<link rel="stylesheet" href="{{ pathto('_static/css/bootstrap-responsive.min.css', 1) }}" type="text/css">
16+
<link rel="shortcut icon" href="{{ pathto('_static/favicon.ico', 1) }}">
17+
<script
18+
<script src="{{ pathto('_static/js/modernizr-2.6.2-respond-1.1.0.min.js', 1) }}"></script>
2019
<meta name='robots' content='noindex,nofollow' />
21-
<link rel="alternate" type="application/rss+xml" title="Deis &raquo; Overview Comments Feed" href="http://deis.io/overview/feed/" />
22-
<link rel='stylesheet' id='admin-bar-css' href='http://deis.io/wp-includes/css/admin-bar.min.css?ver=3.5.2' type='text/css' media='all' />
23-
<link rel='stylesheet' id='core3.0-css' href='http://deis.io/wp-content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/styles/shCore.css?ver=3.0' type='text/css' media='all' />
24-
<link rel='stylesheet' id='core-Default3.0-css' href='http://deis.io/wp-content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/styles/shCoreDefault.css?ver=3.0' type='text/css' media='all' />
25-
<link rel='stylesheet' id='theme-Default3.0-css' href='http://deis.io/wp-content/plugins/wp-syntaxhighlighter/syntaxhighlighter3/styles/shThemeDefault.css?ver=3.0' type='text/css' media='all' />
26-
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://deis.io/xmlrpc.php?rsd" />
27-
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://deis.io/wp-includes/wlwmanifest.xml" />
28-
<link rel='prev' title='Home' href='http://deis.io/' />
29-
<link rel='next' title='Get Deis' href='http://deis.io/get-deis/' />
30-
<link rel='canonical' href='http://deis.io/overview/' />
20+
{%- if pagename == 'index' %}
21+
<link rel="canonical" href="http://deis.io/docs/latest/">
22+
{% else %}
23+
<link rel="canonical" href="http://deis.io/docs/latest/{{ pagename }}/">
24+
{% endif %}
3125
<style type="text/css" media="print">#wpadminbar { display:none; }</style>
3226
<style type="text/css" media="screen">
3327
html { margin-top: 28px !important; }
3428
* html body { margin-top: 28px !important; }
3529
</style>
30+
{% block extrahead %}{% endblock %}
3631
</head>
3732
<body style="zoom: 1;">
3833
<!--[if lt IE 7]>
3934
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
4035
<![endif]-->
4136

42-
<a class="fork" href="http://github.com/opdemand/deis"><img src="http://deis.io/wp-content/themes/deis/img/fork.png" alt="GitHub Fork Button"></a>
37+
<a class="fork" href="http://github.com/opdemand/deis"><img src="{{ pathto('_static/img/fork.png', 1) }}" alt="GitHub Fork Button"></a>
4338
<div class="container">
4439
<div class="row">
4540
<div class="span3 hoop">
4641
<div class="nav-border top-spacing">
4742
<ul class="nav nav-list menu">
48-
<li><a href="/"><img class="logo" src="http://deis.io/wp-content/themes/deis/img/menu-logo.png" alt="deis logo"></a></li>
43+
<li><a href="/"><img class="logo" src="{{ pathto('_static/img/menu-logo.png', 1) }}" alt="deis logo"></a></li>
4944
<li class="divider"></li>
5045
<li class="navitem"><a href="http://deis.io/overview/">Overview</a></li>
5146
<li class="divider"></li>

web/static/css/main.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/static/img/fork.png

558 Bytes
Loading

web/static/img/menu-logo.png

4.5 KB
Loading

0 commit comments

Comments
 (0)