-
Notifications
You must be signed in to change notification settings - Fork 72
Is it possible to reference needs with intersphinx? / Add intersphinx support #137
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
No, I'm afraid this is not possible and I haven't worked with intersphinx up to now. Okay, did just a fast training on intersphinx and how it works. I'm just not sure how to get own data into the So one solution would be to register a domain for Another solution would be to add our needs to the I'm willing to support this great feature, but I have to do some tests, to figure out how to do it. If there is anybody who can help, maybe with a PR, you are welcome :) |
Thank you for your fast reply and willingness to support intersphinx in the future 🙌 I've never done any work on any extensions for Sphinx yet. At the moment I'm just using your excellent extension to write some documentation. Having the ability to link needs across projects might become important enough for us at my work for me to get time allocated to work on it. Realistically that will be months out in the future though :( |
The last days I have thought a lot about this feature and how to implement it. It would be great, if you could give me your opinion, if it covers your case. Reason why not using intersphinx
Long-term goals of the new concept
Why not using needimport?
New conceptNew conf-option needs_intersphinx
The first option can also be given as single string. In this case the New conf-option needs_autoexport
If set to True, the functions to build a Update of need-roleThe need-role will search for a given ID in this order:
If an id is found in the external needs, a link to the exact location in the external documentation is generated. New need-value: doc_pathThe Suggested behaviorDuring a build, all Drawbacks
So, any ideas/feedback about this concept? |
Excellent writeup! ✨ This would cover our use cases and I think the benefits you've outlined definitely outweighs the drawbacks 👍 Nitpicking details Questions
|
Good points.
For same id of multiple needs we could use a prefix, like need_import does
So the last parameter is a prefix, which is added to all imported needs ids. E.g. And for authentication, I plan to use requests lib so at least BasicAuth should be possible. And the integration of other methods should be easy enough, as long as the method is supported by requests. But with other implementations I will wait for a use case :) |
👍 to all of it. |
+1 for the feature ! |
+1 for the feature too |
@danwos I did a quick test of the feature branch. I couldn't wait long to test it out 😃 Two issues I quickly noticed: Issue 1
A "clean" build or the "third build" succeeds. Issue 2 |
@twodrops Thanks for already testing it 👍 |
@danwos Thanks for that. I couldn't get the |
* Calculated link gets .html file extension after docname * Tests are updated to really check data Fixes #137
* Calculated link gets .html file extension after docname * Tests are updated to really check data Fixes #137
As the title says I'd like to know if it is possible to cross reference using intersphinx.
As a try out I tried adding the following to
conf.py
and referencing using
or
(
SPEC-1
is defined on the front page of the documentation), but no such luck. Has anybody tried this?The text was updated successfully, but these errors were encountered: