Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#14033 closed (fixed)

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

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

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 5 years ago.
Path for this issue
14033.2.diff (3.8 KB) - added by ramiro 5 years ago.
Fixed bare except clauses.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by ramiro

Path for this issue

Changed 5 years ago by ramiro

Fixed bare except clauses.

comment:1 Changed 5 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

(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 Changed 5 years ago by jezdez

(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