Skip to content

Commit

Permalink
Fix references in the webapi docs.
Browse files Browse the repository at this point in the history
The new version of Sphinx moved such things as xrefs into new "domains"
(namespaces). The generator for webapi docs wasn't specifying the domain for
"ref", so we ended up with blank references. We now use the "std" domain,
which gives us our references back!
  • Loading branch information
chipx86 committed Sep 5, 2010
1 parent 4e435c3 commit 6bb2593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/manual/_ext/webapidocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,8 +640,8 @@ def get_resource_docname(resource, is_list):
def get_ref_to_doc(refname):
"""Returns a node that links to a document with the given ref name."""
ref = addnodes.pending_xref(reftype='ref', reftarget=refname,
refcaption=False)
ref += nodes.literal(title=refname, classes=['xref'])
refexplicit=False, refdomain='std')
ref += nodes.literal(refname, refname, classes=['xref'])
return ref


Expand Down

0 comments on commit 6bb2593

Please sign in to comment.