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
63c98ed2
Commit
63c98ed2
authored
Sep 09, 2019
by
Julien Palard
Committed by
GitHub
Sep 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc: Fix PDF build (NoUri). (GH-15739)
parent
bba92072
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
Doc/tools/extensions/pyspecific.py
Doc/tools/extensions/pyspecific.py
+11
-4
No files found.
Doc/tools/extensions/pyspecific.py
View file @
63c98ed2
...
...
@@ -22,6 +22,10 @@ from docutils import nodes, utils
from
sphinx
import
addnodes
from
sphinx.builders
import
Builder
try
:
from
sphinx.errors
import
NoUri
except
ImportError
:
from
sphinx.environment
import
NoUri
from
sphinx.locale
import
translators
from
sphinx.util
import
status_iterator
,
logging
from
sphinx.util.nodes
import
split_explicit_title
...
...
@@ -569,10 +573,13 @@ def process_audit_events(app, doctree, fromdocname):
for i, (doc, label) in backlinks:
if isinstance(label, str):
ref = nodes.reference("", nodes.Text("
[{}]
".format(i)), internal=True)
ref['refuri'] = "
{}
#{}".format(
app
.
builder
.
get_relative_uri
(
fromdocname
,
doc
),
label
,
)
try:
ref['refuri'] = "
{}
#{}".format(
app
.
builder
.
get_relative_uri
(
fromdocname
,
doc
),
label
,
)
except
NoUri
:
continue
node
+=
ref
row
+=
nodes
.
entry
(
''
,
node
)
...
...
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