I have a method, and in the docsrting of this method I have references. I then want to alias the method. Something like this:
class Class(object):
def method(self):
r"""
REFERENCES::
.. [ABC123] A, B and C in 123, 123.
"""
alias = method
This freaks sphinx out, and it warns:
docstring of sage.......Class.method:123: WARNING: Duplicate explicit target name: "abc123".
Am I doing something wrong? Any better way of defining aliases?
I have followed the alias of adjacency_matrix (am) defined in generic_graph.py.
Thanks,
Peleg.