Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#14033 closed (fixed)

versionadded, versionchanged directives don't insert xref link with Sphinx 1.0

Reported by: Ramiro Morales Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

It works correctly with Sphinx 0.6.x.

Refs. #13616 and #14005, this had already been reported by andrewsk (http://code.djangoproject.com/ticket/13616#comment:8).

An example: http://docs.djangoproject.com/en/1.2/ref/models/options/#django.db.models.Options.managed

The fix is to replace 'ref' with 'std:ref' when adding the node but I to migrate the directive implementation to the class-based scheme available since sphinx 0.6 from the deprecated function-based (see http://sphinx.pocoo.org/ext/appapi.html#sphinx.application.Sphinx.add_directive)

Attachments (2)

14033.diff (3.5 KB ) - added by Ramiro Morales 14 years ago.
Path for this issue
14033.2.diff (3.8 KB ) - added by Ramiro Morales 14 years ago.
Fixed bare except clauses.

Download all attachments as: .zip

Change History (4)

by Ramiro Morales, 14 years ago

Attachment: 14033.diff added

Path for this issue

by Ramiro Morales, 14 years ago

Attachment: 14033.2.diff added

Fixed bare except clauses.

comment:1 by Jannis Leidel, 14 years ago

Resolution: fixed
Status: newclosed

(In [13602]) Fixed #14033 -- Fixed another problem with xrefs and Sphinx 1.X in the Django doc extension. Thanks for the report and patch, Ramiro Morales and Georg Brandl.

comment:2 by Jannis Leidel, 14 years ago

(In [13603]) [1.2.X] Fixed #14033 -- Fixed another problem with xrefs and Sphinx 1.X in the Django doc extension. Thanks for the report and patch, Ramiro Morales and Georg Brandl.

Backport of r13602 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top