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
adf68152
Commit
adf68152
authored
Apr 11, 2009
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a monkeypatching hack so that the docs can still be built with Sphinx 0.5.
parent
e91c6d7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Doc/tools/sphinxext/pyspecific.py
Doc/tools/sphinxext/pyspecific.py
+5
-1
No files found.
Doc/tools/sphinxext/pyspecific.py
View file @
adf68152
...
...
@@ -5,7 +5,7 @@
Sphinx extension with Python doc-specific markup.
:copyright: 2008 by Georg Brandl.
:copyright: 2008
, 2009
by Georg Brandl.
:license: Python license.
"""
...
...
@@ -59,7 +59,11 @@ from docutils.utils import new_document
try
:
from
sphinx.builders
import
Builder
except
ImportError
:
# using Sphinx < 0.6, which has a different package layout
from
sphinx.builder
import
Builder
# monkey-patch toctree directive to accept (and ignore) the :numbered: flag
from
sphinx.directives.other
import
toctree_directive
toctree_directive
.
options
[
'numbered'
]
=
toctree_directive
.
options
[
'glob'
]
try
:
from
sphinx.writers.text
import
TextWriter
...
...
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