Permalink
Browse files

Updated template to use small header in preparation for the new site,…

… added pylonsfw theme to support Pylons Framework documentation
  • Loading branch information...
1 parent e2aa629 commit 8b2c51f7d2717a15299af106f91676b473dbda39 @blaflamme blaflamme committed Jan 11, 2011
View
@@ -16,5 +16,6 @@ To use a theme in your Sphinx documentation, follow this guide:
The following themes exist:
-- **pylons** - the generic Pylons documentation theme
+- **pylons** - the generic Pylons Project documentation theme
- **pyramid** - the specific Pyramid documentation theme
+- **pylonsfw** - the specific Pylons Framework documentation theme
View
@@ -1,8 +1,7 @@
{% extends "basic/layout.html" %}
{%- block extrahead %}
-<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Neuton&amp;subset=latin" type="text/css" media="screen" charset="utf-8" />
-<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Nobile:regular,italic,bold,bolditalic&amp;subset=latin" type="text/css" media="screen" charset="utf-8" />
+<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Neuton|Nobile:i,b,bi&amp;subset=latin" type="text/css" media="screen" charset="utf-8" />
<!--[if lte IE 6]>
<link rel="stylesheet" href="{{ pathto('_static/ie6.css', 1) }}" type="text/css" media="screen" charset="utf-8" />
<![endif]-->
@@ -12,12 +11,12 @@
{% endblock %}
{% block header %}
-<div class="header{{ '-small' if pagename != 'index' else '' }}">
+<div class="header-small">
{%- if theme_logo %}
{% set img, ext = theme_logo.split('.', -1) %}
- <div class="logo{{ '-small' if pagename != 'index' else '' }}">
+ <div class="logo-small">
<a href="{{ pathto(master_doc) }}">
- <img class="logo" src="{{ pathto('_static/%s.%s' % (img, ext), 1) if pagename == 'index' else pathto('_static/%s-small.%s' % (img, ext), 1)}}" alt="Logo"/>
+ <img class="logo" src="{{ pathto('_static/%s-small.%s' % (img, ext), 1)}}" alt="Logo"/>
</a>
</div>
{%- endif %}
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -42,26 +42,25 @@ div.document {
div.header{
width:100%;
height:230px;
- background: #f4ad32 url(headerbg.png) repeat-x 0 top;
+ background: #f98131 url(headerbg.png) repeat-x 0 top;
border-bottom: 2px solid #ffffff;
}
div.header-small{
width:100%;
height:60px;
- background: #f4ad32 url(headerbg.png) repeat-x 0 top;
+ background: #f98131 url(headerbg.png) repeat-x 0 top;
border-bottom: 2px solid #ffffff;
}
-
div.logo {
text-align: center;
padding-top: 50px;
}
div.logo-small {
- text-align: center;
- padding-top: 10px;
+ text-align: left;
+ padding: 10px 0 0 250px;
}
div.body {
View
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -0,0 +1,6 @@
+[theme]
+inherit = pylons
+
+[options]
+logo = pylonsfw.png
+favicon = pylons.ico
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8b2c51f

Please sign in to comment.