Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ab712143
Commit
ab712143
authored
Mar 25, 2012
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to new "lighter" doc design.
parent
11ee31ab
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
Doc/conf.py
Doc/conf.py
+4
-1
Doc/tools/sphinxext/layout.html
Doc/tools/sphinxext/layout.html
+1
-0
Doc/tools/sphinxext/pyspecific.py
Doc/tools/sphinxext/pyspecific.py
+2
-2
Doc/tools/sphinxext/static/copybutton.js
Doc/tools/sphinxext/static/copybutton.js
+2
-1
No files found.
Doc/conf.py
View file @
ab712143
...
@@ -65,9 +65,12 @@ highlight_language = 'python3'
...
@@ -65,9 +65,12 @@ highlight_language = 'python3'
# Options for HTML output
# Options for HTML output
# -----------------------
# -----------------------
html_theme
=
'default'
html_theme
=
'pydoctheme'
html_theme_path
=
[
'tools/sphinxext'
]
html_theme_options
=
{
'collapsiblesidebar'
:
True
}
html_theme_options
=
{
'collapsiblesidebar'
:
True
}
html_short_title
=
'%s Documentation'
%
release
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
# using the given strftime format.
html_last_updated_fmt
=
'%b %d, %Y'
html_last_updated_fmt
=
'%b %d, %Y'
...
...
Doc/tools/sphinxext/layout.html
View file @
ab712143
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
{% block rootrellink %}
{% block rootrellink %}
<li><img
src=
"{{ pathto('_static/py.png', 1) }}"
alt=
""
<li><img
src=
"{{ pathto('_static/py.png', 1) }}"
alt=
""
style=
"vertical-align: middle; margin-top: -1px"
/></li>
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>
<li><a
href=
"{{ pathto('index') }}"
>
{{ shorttitle }}
</a>
{{ reldelim1 }}
</li>
{% endblock %}
{% endblock %}
{% block extrahead %}
{% block extrahead %}
...
...
Doc/tools/sphinxext/pyspecific.py
View file @
ab712143
...
@@ -27,10 +27,10 @@ def new_visit_versionmodified(self, node):
...
@@ -27,10 +27,10 @@ def new_visit_versionmodified(self, node):
self
.
body
.
append
(
self
.
starttag
(
node
,
'p'
,
CLASS
=
node
[
'type'
]))
self
.
body
.
append
(
self
.
starttag
(
node
,
'p'
,
CLASS
=
node
[
'type'
]))
text
=
versionlabels
[
node
[
'type'
]]
%
node
[
'version'
]
text
=
versionlabels
[
node
[
'type'
]]
%
node
[
'version'
]
if
len
(
node
):
if
len
(
node
):
text
+=
':
'
text
+=
':'
else
:
else
:
text
+=
'.'
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.writers.html
import
HTMLTranslator
from
sphinx.locale
import
versionlabels
from
sphinx.locale
import
versionlabels
...
...
Doc/tools/sphinxext/static/copybutton.js
View file @
ab712143
...
@@ -17,7 +17,8 @@ $(document).ready(function() {
...
@@ -17,7 +17,8 @@ $(document).ready(function() {
'
cursor
'
:
'
pointer
'
,
'
position
'
:
'
absolute
'
,
'
top
'
:
'
0
'
,
'
right
'
:
'
0
'
,
'
cursor
'
:
'
pointer
'
,
'
position
'
:
'
absolute
'
,
'
top
'
:
'
0
'
,
'
right
'
:
'
0
'
,
'
border-color
'
:
border_color
,
'
border-style
'
:
border_style
,
'
border-color
'
:
border_color
,
'
border-style
'
:
border_style
,
'
border-width
'
:
border_width
,
'
color
'
:
border_color
,
'
text-size
'
:
'
75%
'
,
'
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 >>>
// create and add the button to all the code blocks that contain >>>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment