Skip to content

Commit

Permalink
Updated template to use small header in preparation for the new site,…
Browse files Browse the repository at this point in the history
… added pylonsfw theme to support Pylons Framework documentation
  • Loading branch information
blaflamme committed Jan 11, 2011
1 parent e2aa629 commit 8b2c51f
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 11 deletions.
3 changes: 2 additions & 1 deletion README.rst
Expand Up @@ -16,5 +16,6 @@ To use a theme in your Sphinx documentation, follow this guide:


The following themes exist: The following themes exist:


- **pylons** - the generic Pylons documentation theme - **pylons** - the generic Pylons Project documentation theme
- **pyramid** - the specific Pyramid documentation theme - **pyramid** - the specific Pyramid documentation theme
- **pylonsfw** - the specific Pylons Framework documentation theme
9 changes: 4 additions & 5 deletions pylons/layout.html
@@ -1,8 +1,7 @@
{% extends "basic/layout.html" %} {% extends "basic/layout.html" %}


{%- block extrahead %} {%- 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=Neuton|Nobile:i,b,bi&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" />
<!--[if lte IE 6]> <!--[if lte IE 6]>
<link rel="stylesheet" href="{{ pathto('_static/ie6.css', 1) }}" type="text/css" media="screen" charset="utf-8" /> <link rel="stylesheet" href="{{ pathto('_static/ie6.css', 1) }}" type="text/css" media="screen" charset="utf-8" />
<![endif]--> <![endif]-->
Expand All @@ -12,12 +11,12 @@
{% endblock %} {% endblock %}


{% block header %} {% block header %}
<div class="header{{ '-small' if pagename != 'index' else '' }}"> <div class="header-small">
{%- if theme_logo %} {%- if theme_logo %}
{% set img, ext = theme_logo.split('.', -1) %} {% set img, ext = theme_logo.split('.', -1) %}
<div class="logo{{ '-small' if pagename != 'index' else '' }}"> <div class="logo-small">
<a href="{{ pathto(master_doc) }}"> <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> </a>
</div> </div>
{%- endif %} {%- endif %}
Expand Down
Binary file modified pylons/static/headerbg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified pylons/static/pylons-small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions pylons/static/pylons.css_t
Expand Up @@ -42,26 +42,25 @@ div.document {
div.header{ div.header{
width:100%; width:100%;
height:230px; 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; border-bottom: 2px solid #ffffff;
} }


div.header-small{ div.header-small{
width:100%; width:100%;
height:60px; 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; border-bottom: 2px solid #ffffff;
} }



div.logo { div.logo {
text-align: center; text-align: center;
padding-top: 50px; padding-top: 50px;
} }


div.logo-small { div.logo-small {
text-align: center; text-align: left;
padding-top: 10px; padding: 10px 0 0 250px;
} }


div.body { div.body {
Expand Down
Binary file added pylonsfw/static/pylons.ico
Binary file not shown.
Binary file added pylonsfw/static/pylonsfw-small.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions pylonsfw/theme.conf
@@ -0,0 +1,6 @@
[theme]
inherit = pylons

[options]
logo = pylonsfw.png
favicon = pylons.ico
Binary file modified pyramid/static/pyramid-small.png
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.