diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py
index aaad219..fdedbc7 100644
a
|
b
|
def parse_version_directive(name, arguments, options, content, lineno,
|
71 | 71 | if not is_nextversion: |
72 | 72 | if len(arguments) == 1: |
73 | 73 | linktext = 'Please, see the release notes <releases-%s>' % (arguments[0]) |
74 | | xrefs = sphinx.roles.xfileref_role('ref', linktext, linktext, lineno, state) |
| 74 | xrefs = sphinx.roles.XRefRole()('ref', linktext, linktext, lineno, state) |
75 | 75 | node.extend(xrefs[0]) |
76 | 76 | node['version'] = arguments[0] |
77 | 77 | else: |
… |
… |
def parse_version_directive(name, arguments, options, content, lineno,
|
83 | 83 | if content: |
84 | 84 | state.nested_parse(content, content_offset, node) |
85 | 85 | ret = ret + messages |
86 | | env.note_versionchange(node['type'], node['version'], node, lineno) |
| 86 | env.versionchanges.setdefault(node['version'], []).append( |
| 87 | (node['type'], env.temp_data['docname'], lineno, |
| 88 | env.temp_data.get('py_module'), |
| 89 | env.temp_data.get('object'), |
| 90 | node.astext())) |
87 | 91 | return ret |
88 | 92 | |
89 | 93 | |
… |
… |
def parse_django_admin_node(env, sig, signode):
|
195 | 199 | def parse_django_adminopt_node(env, sig, signode): |
196 | 200 | """A copy of sphinx.directives.CmdoptionDesc.parse_signature()""" |
197 | 201 | from sphinx import addnodes |
198 | | from sphinx.directives.desc import option_desc_re |
| 202 | from sphinx.domains.std import option_desc_re |
199 | 203 | count = 0 |
200 | 204 | firstname = '' |
201 | 205 | for m in option_desc_re.finditer(sig): |