mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
merge with 0.5
This commit is contained in:
commit
a8756fb4b3
2
CHANGES
2
CHANGES
@ -97,6 +97,8 @@ New features added
|
|||||||
Release 0.5.2 (in development)
|
Release 0.5.2 (in development)
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
|
* #86: Fix explicit document titles in toctrees.
|
||||||
|
|
||||||
* #81: Write environment and search index in a manner that is safe
|
* #81: Write environment and search index in a manner that is safe
|
||||||
from exceptions that occur during dumping.
|
from exceptions that occur during dumping.
|
||||||
|
|
||||||
|
@ -985,12 +985,12 @@ class BuildEnvironment:
|
|||||||
# replace titles, if needed, and set the target paths in the
|
# replace titles, if needed, and set the target paths in the
|
||||||
# toctrees (they are not known at TOC generation time)
|
# toctrees (they are not known at TOC generation time)
|
||||||
for refnode in newnode.traverse(nodes.reference):
|
for refnode in newnode.traverse(nodes.reference):
|
||||||
refnode['refuri'] = builder.get_relative_uri(
|
|
||||||
docname, refnode['refuri']) + refnode['anchorname']
|
|
||||||
if titleoverrides and not refnode['anchorname'] \
|
if titleoverrides and not refnode['anchorname'] \
|
||||||
and refnode['refuri'] in titleoverrides:
|
and refnode['refuri'] in titleoverrides:
|
||||||
newtitle = titleoverrides[refnode['refuri']]
|
newtitle = titleoverrides[refnode['refuri']]
|
||||||
refnode.children = [nodes.Text(newtitle)]
|
refnode.children = [nodes.Text(newtitle)]
|
||||||
|
refnode['refuri'] = builder.get_relative_uri(
|
||||||
|
docname, refnode['refuri']) + refnode['anchorname']
|
||||||
return newnode
|
return newnode
|
||||||
|
|
||||||
descroles = frozenset(('data', 'exc', 'func', 'class', 'const', 'attr', 'obj',
|
descroles = frozenset(('data', 'exc', 'func', 'class', 'const', 'attr', 'obj',
|
||||||
|
Loading…
Reference in New Issue
Block a user