Commits

Ali Afshar committed 968f0c6

Used a custom template for the documentation

  • Participants
  • Parent commits 02ed92a

Comments (0)

Files changed (5)

File docs/_static/draco.css

+
+body {
+    width: 800px;
+    margin: auto;
+}
+
+a {
+    font-weight: bold;
+    color: #837D7C;
+}
+
+.document {
+    font-family: sans;
+    border-bottom:1px solid #837D7C;
+    border-top:1px solid #837D7C;
+    margin: 12px 0px;
+}
+
+.related a {
+    font-family:"lucida console","monaco","andale mono","bitstream vera sans mono","consolas",monospace;
+    font-size:1.1em;
+    font-weight:normal;
+    letter-spacing:2px;
+    margin:0;
+    text-transform:uppercase;
+    text-decoration: none;
+    color: #837D7C;
+    font-weight: bold;
+}
+
+div.related ul {
+    padding: 0px;
+}
+
+.banner h1 {
+    font-size:4.5em;
+    font-weight:normal;
+    line-height:1;
+    letter-spacing:-3px;
+    margin-top: 12px;
+    margin-bottom: 12px;
+}
+
+.banner {
+    color:#000000;
+    letter-spacing:-1px;
+    font-family:georgia,'bitstream vera serif',serif;
+    height: 100px;
+    margin-bottom: 24px;
+}
+
+.banner a {
+    color:#000000;
+}
+
+
+.banner img {
+    float: left;
+    margin-right: 24px;
+}
+
+.footer {
+    color:#000000;
+    font-size: 0.7em;
+    text-align: center;
+    line-height:1;
+    margin-top: 12px;
+    font-family:"lucida console","monaco","andale mono","bitstream vera sans mono","consolas",monospace;
+    font-weight:normal;
+    letter-spacing:2px;
+    text-transform:uppercase;
+    text-decoration: none;
+    color: #837D7C;
+}
+
+.highlight pre {
+    background-color:#EEFFCC;
+    border-color:#AACC99 -moz-use-text-color;
+    border-style:solid none;
+    border-width:1px medium;
+    color:#333333;
+    line-height:120%;
+    padding:5px;
+}
+
+div.sphinxsidebar {
+    margin-left: 0px;
+    float: none;
+    width: 100%;
+    font-size: 0.8em;
+}

File docs/_static/scope.jpg

Added
New image

File docs/_templates/layout.html

+
+{# extending the basic template layout #}
+{% extends "!layout.html" %}
+
+{% block extrahead %}
+   <link href="_static/draco.css" rel="stylesheet" type="text/css" />
+{% endblock %}
+
+{# appears before the document #}
+{% block header %}
+    <div class="banner">
+        <a href="index.html">
+        <img src="_static/scope.jpg" alt="pygtkhelpers logo"></img>
+        <h1>
+        PyGTKHelpers
+        </h1>
+        </a>
+        <div>easing the pain of developing PyGTK, somewhat</div>
+    </div>
+{% endblock %}
+
+{#
+vim: ft=htmljinja
+#}
+

File docs/api.rst

 
-pygtkhelpers API Documentation
-==============================
+API
+===
 
 .. toctree::
     :maxdepth: 2

File docs/conf.py

 # The theme to use for HTML and HTML Help pages.  Major themes that come with
 # Sphinx are currently 'default' and 'sphinxdoc'.
 #html_theme = 'sphinxdoc'
-html_theme = 'default'
+html_theme = 'basic'
 
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the
 # documentation.
-#html_theme_options = {}
+html_theme_options = {
+    'nosidebar': True
+}
 
 # Add any paths that contain custom themes here, relative to this directory.
 #html_theme_path = []
 
 # The name for this set of Sphinx documents.  If None, it defaults to
 # "<project> v<release> documentation".
-#html_title = None
+html_title = 'docs v%s' % release
 
 # A shorter title for the navigation bar.  Default is the same as html_title.
 #html_short_title = None
 
 # The name of an image file (relative to this directory) to place at the top
 # of the sidebar.
-#html_logo = None
+html_logo = '_static/scope.jpg'
 
 # The name of an image file (within the static path) to use as favicon of the
 # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32