mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Switch to new "lighter" doc design.
This commit is contained in:
parent
11ee31ab08
commit
ab7121430e
4 changed files with 9 additions and 4 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 >>>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue