You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Libdoc: Local Markdown reference targets cannot be used in argument, return or exception documentation #5810
For example, if you have a library with the following Markdown documentation, all other reference link usages except [local] in the argument documentation work. A concrete example is BuiltIn.Log To Console. It has a working link to format specification in the overall keyword docs, but the same link doesn't work with the format argument.
"""Intro with a [global] reference.[global]: http://example.com"""defkw(arg):
"""Keyword with [global] and [local] references. Args: arg: Argument with [global] and [local] references. [local]: http://robotframework.org """
The overall design with references is this:
Global references created in the introduction work everywhere.
Local references created inside a keyword doc work with that keyword but not with other keywords.
The reason local references don't work with arguments or with return values or exceptions is that they are converted to HTML as a separate step and references created when the overall keyword doc was created are cleared before that. This can be fixed relatively easily by not clearing everything every time and instead adding a separate clear() or reset() method for clearing the state when appropriate.
This bug can also be worked around by using global reference targets when references are needed with arguments. It's better to fix the underlying bug, but the pretty simple workaround means this issue doesn't deserve high priority.
Activity
Libdoc: Fix local references in args/return/raises docs