Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 288b9bf

Browse files
committed
merge with 3.2
2 parents 1ab27c6 + ab71214 commit 288b9bf

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

Doc/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,12 @@
6565
# Options for HTML output
6666
# -----------------------
6767

68-
html_theme = 'default'
68+
html_theme = 'pydoctheme'
69+
html_theme_path = ['tools/sphinxext']
6970
html_theme_options = {'collapsiblesidebar': True}
7071

72+
html_short_title = '%s Documentation' % release
73+
7174
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
7275
# using the given strftime format.
7376
html_last_updated_fmt = '%b %d, %Y'

Doc/tools/sphinxext/layout.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{% block rootrellink %}
33
<li><img src="{{ pathto('_static/py.png', 1) }}" alt=""
44
style="vertical-align: middle; margin-top: -1px"/></li>
5+
<li><a href="http://www.python.org/">Python</a>{{ reldelim1 }}</li>
56
<li><a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}</li>
67
{% endblock %}
78
{% block extrahead %}

Doc/tools/sphinxext/pyspecific.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ def new_visit_versionmodified(self, node):
2727
self.body.append(self.starttag(node, 'p', CLASS=node['type']))
2828
text = versionlabels[node['type']] % node['version']
2929
if len(node):
30-
text += ': '
30+
text += ':'
3131
else:
3232
text += '.'
33-
self.body.append('<span class="versionmodified">%s</span>' % text)
33+
self.body.append('<span class="versionmodified">%s</span> ' % text)
3434

3535
from sphinx.writers.html import HTMLTranslator
3636
from sphinx.locale import versionlabels

Doc/tools/sphinxext/static/copybutton.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ $(document).ready(function() {
1717
'cursor':'pointer', 'position': 'absolute', 'top': '0', 'right': '0',
1818
'border-color': border_color, 'border-style': border_style,
1919
'border-width': border_width, 'color': border_color, 'text-size': '75%',
20-
'font-family': 'monospace', 'padding-left': '0.2em', 'padding-right': '0.2em'
20+
'font-family': 'monospace', 'padding-left': '0.2em', 'padding-right': '0.2em',
21+
'border-radius': '0 3px 0 0'
2122
}
2223

2324
// create and add the button to all the code blocks that contain >>>

0 commit comments

Comments
 (0)