-
Notifications
You must be signed in to change notification settings - Fork 52
Intersphinx cross-referencing does not work naively #428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
cc @steff456 |
We should fix this, the |
I've been trying to fix this issue without major luck. I'll give it another check to see if I can remove the signatures and also shorten the amount of writing in a cross reference. |
Why don't we just rename |
Also in |
@kgryte Is there a way we can "backport" the fix #430 to v2021? It only fixed the
|
@leofang Yes, this should be possible. Will see what I can do. |
I believe this was fixed, the intersphinx content seems consistent across all versions and % python -m sphinx.ext.intersphinx https://data-apis.org/array-api/2022.12/objects.inv | rg arange
array_api.arange API_specification/generated/array_api.arange.html#array_api.arange
API_specification/generated/array_api.arange arange : API_specification/generated/array_api.arange.html
% python -m sphinx.ext.intersphinx https://data-apis.org/array-api/2021.12/objects.inv | rg arange
array_api.arange API_specification/generated/array_api.arange.html#array_api.arange
API_specification/generated/array_api.arange arange : API_specification/generated/array_api.arange.html
% python -m sphinx.ext.intersphinx https://data-apis.org/array-api/latest/objects.inv | rg arange
array_api.arange API_specification/generated/array_api.arange.html#array_api.arange
API_specification/generated/array_api.arange arange : API_specification/generated/array_api.arange.html
% python -m sphinx.ext.intersphinx https://data-apis.org/array-api/draft/objects.inv | rg arange
array_api.arange API_specification/generated/array_api.arange.html#array_api.arange
API_specification/generated/array_api.arange arange : API_specification/generated/array_api.arange.html So I'll close this - thanks all! |
I am improving CuPy's documentation and hit this issue...
Let's say I want to reference
arange
from the array API. Ideally, I would expect this should work out of box:and in anywhere (rst files or docstrings) I could just do
to link to
arange
. Unfortunately, this does not work, nor does the global version (removing thearray_api
prefix). Instead I must do this following due to this repo's structure:This is quite confusing and counter-intuitive. I could work with it, but I am wondering if we could do better, say re-organizing the Python stub files such that
array_api.arange
works, so opening this issue to collect feedbacks and suggestions.The text was updated successfully, but these errors were encountered: