-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Allow links to arbitrary intersphinx references #609
Comments
This is a hard one because our intersphinx inventory is absolutely not built with this in mind. As a consequence, we don't have the "project name" which correspond to the inventory objects, because it's not necessary to lookup python objects. But to lookup narrative docs pages, we need to know on which project to look for, because all project will have a page named "install" or "quickstart", etc. So this definitely needs more reflexion. |
The logic should be adjusted so that:
What do you think @adiroiban ? |
Also, to be compatible with sphinx, |
I’ll first add support for these kind of link to the restructured text markup only since it’s easier to implement with the docutils roles. Then for epytext we’ll need to get creative. The main issue being the fact that names in the intersphinx mapping can contains colons. So making the difference in between the meta information and the link target might be difficult since the meta informations can contain one, two or three columns in the sphinx world. |
I have an idea: what about introducing a new epytex markup |
I think that the But it's ok to have it as
This would be nice. Yes. Having #741 would be nice.
Not sure if this is a good idea. Just my quick feedback. Thanks for working on pydoctor :) |
thanks for your inputs
docutils is already a hard requirement for epytext. This would also fix some weaknesses of epytext like not being able to do tables or admonitions, but this can be implemented in a second phase. |
I think that pydoctor, at least with epydoc syntax only supports links from pydoctor to sphinx for API objects.
https://pydoctor.readthedocs.io/en/latest/sphinx-integration.html#linking-from-pydoctor-to-external-api-docs
There is no support for generic object reference
In Sphinx the syntax is
https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html
In pydoctor, the external search is implicit
L{datetime.datetime}
will search all external inventories fordatetime.datetime
reference.We might want to implement something like
L{:external+otherbook:doc:installation}
to keep it as close as possible to the sphinx formatThe text was updated successfully, but these errors were encountered: