]> granicus.if.org Git - python/commitdiff
Switch to new "lighter" doc design.
authorGeorg Brandl <georg@python.org>
Sun, 25 Mar 2012 18:31:57 +0000 (20:31 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 25 Mar 2012 18:31:57 +0000 (20:31 +0200)
Doc/conf.py
Doc/tools/sphinxext/layout.html
Doc/tools/sphinxext/pyspecific.py
Doc/tools/sphinxext/static/copybutton.js

index 85eb9fa3bb3ec4f0f0e3852fb92eaa60c05314f8..f8278405b5a8e10756e629d238f2b4966214ca0a 100644 (file)
@@ -65,9 +65,12 @@ highlight_language = 'python3'
 # Options for HTML output
 # -----------------------
 
-html_theme = 'default'
+html_theme = 'pydoctheme'
+html_theme_path = ['tools/sphinxext']
 html_theme_options = {'collapsiblesidebar': True}
 
+html_short_title = '%s Documentation' % release
+
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
 # using the given strftime format.
 html_last_updated_fmt = '%b %d, %Y'
index d4bb105e831370d3a3052142fc928261b2642b94..db4a386e89ff9729adcbe91700a157979ce669ab 100644 (file)
@@ -2,6 +2,7 @@
 {% block rootrellink %}
         <li><img src="{{ pathto('_static/py.png', 1) }}" alt=""
                  style="vertical-align: middle; margin-top: -1px"/></li>
+        <li><a href="http://www.python.org/">Python</a>{{ reldelim1 }}</li>
         <li><a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}</li>
 {% endblock %}
 {% block extrahead %}
index 43292816a22ece5d1ce498b2ba378b072557d601..89bb86fc22c935904ffd5a5d72ab2a7932ae1802 100644 (file)
@@ -27,10 +27,10 @@ def new_visit_versionmodified(self, node):
     self.body.append(self.starttag(node, 'p', CLASS=node['type']))
     text = versionlabels[node['type']] % node['version']
     if len(node):
-        text += ': '
+        text += ':'
     else:
         text += '.'
-    self.body.append('<span class="versionmodified">%s</span>' % text)
+    self.body.append('<span class="versionmodified">%s</span> ' % text)
 
 from sphinx.writers.html import HTMLTranslator
 from sphinx.locale import versionlabels
index a3b1099e3a7fbfab6a5cd721e2542598e0155a9d..5d82c672beefcc7b2b03720e94a897518f55d11c 100644 (file)
@@ -17,7 +17,8 @@ $(document).ready(function() {
         'cursor':'pointer', 'position': 'absolute', 'top': '0', 'right': '0',
         'border-color': border_color, 'border-style': border_style,
         'border-width': border_width, 'color': border_color, 'text-size': '75%',
-        'font-family': 'monospace', 'padding-left': '0.2em', 'padding-right': '0.2em'
+        'font-family': 'monospace', 'padding-left': '0.2em', 'padding-right': '0.2em',
+        'border-radius': '0 3px 0 0'
     }
 
     // create and add the button to all the code blocks that contain >>>