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
076ca5a4
Commit
076ca5a4
authored
Sep 16, 2009
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make deprecation notices as visible as warnings are right now.
parent
01805650
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
10 deletions
+21
-10
Doc/tools/sphinxext/pyspecific.py
Doc/tools/sphinxext/pyspecific.py
+14
-0
Doc/tools/sphinxext/static/basic.css
Doc/tools/sphinxext/static/basic.css
+7
-10
No files found.
Doc/tools/sphinxext/pyspecific.py
View file @
076ca5a4
...
@@ -20,6 +20,20 @@ Body.enum.converters['loweralpha'] = \
...
@@ -20,6 +20,20 @@ Body.enum.converters['loweralpha'] = \
Body
.
enum
.
converters
[
'lowerroman'
]
=
\
Body
.
enum
.
converters
[
'lowerroman'
]
=
\
Body
.
enum
.
converters
[
'upperroman'
]
=
lambda
x
:
None
Body
.
enum
.
converters
[
'upperroman'
]
=
lambda
x
:
None
# monkey-patch HTML translator to give versionmodified paragraphs a class
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
+=
': '
else
:
text
+=
'.'
self
.
body
.
append
(
'<span class="versionmodified">%s</span>'
%
text
)
from
sphinx.writers.html
import
HTMLTranslator
from
sphinx.locale
import
versionlabels
HTMLTranslator
.
visit_versionmodified
=
new_visit_versionmodified
def
issue_role
(
typ
,
rawtext
,
text
,
lineno
,
inliner
,
options
=
{},
content
=
[]):
def
issue_role
(
typ
,
rawtext
,
text
,
lineno
,
inliner
,
options
=
{},
content
=
[]):
issue
=
utils
.
unescape
(
text
)
issue
=
utils
.
unescape
(
text
)
...
...
Doc/tools/sphinxext/static/basic.css
View file @
076ca5a4
...
@@ -5,15 +5,6 @@
...
@@ -5,15 +5,6 @@
/* -- main layout ----------------------------------------------------------- */
/* -- main layout ----------------------------------------------------------- */
div
.documentwrapper
{
float
:
left
;
width
:
100%
;
}
div
.bodywrapper
{
margin
:
0
0
0
230px
;
}
div
.clearer
{
div
.clearer
{
clear
:
both
;
clear
:
both
;
}
}
...
@@ -338,6 +329,12 @@ dl.glossary dt {
...
@@ -338,6 +329,12 @@ dl.glossary dt {
font-style
:
italic
;
font-style
:
italic
;
}
}
p
.deprecated
{
background-color
:
#ffe4e4
;
border
:
1px
solid
#f66
;
padding
:
7px
}
.system-message
{
.system-message
{
background-color
:
#fda
;
background-color
:
#fda
;
padding
:
5px
;
padding
:
5px
;
...
@@ -394,7 +391,7 @@ img.math {
...
@@ -394,7 +391,7 @@ img.math {
vertical-align
:
middle
;
vertical-align
:
middle
;
}
}
div
.math
p
{
div
.
body
div
.
math
p
{
text-align
:
center
;
text-align
:
center
;
}
}
...
...
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