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
Link to external documentations #1585
Comments
You can do something a bit like this with the If we do this, I think we should provide a more general mechanism for linking directly to external types. See #534 for some (very old, very possibly harebrained) ideas about how we might do this. |
Kind of a related-ish question, but as a stopgap, is there some sort of 'library' of useful common |
I think this feature would be especially beneficial for exotic types like |
I think that JavaScript built-in data types should be automatically linked to MDN documentation (but it could also be configurable). This should not be hard because all documentation for data types on MDN is on I think that it should link data types and some other global objects. Also, don't forget that users should also be able to write |
Maybe this can be a plugin? (I got the idea from TypeStrong/typedoc#895.) |
Update: I created the plugin. See next comment or see Outerdocs Old CommentI believe focusing only on MDN core javascript linking is far too narrow a take on this feature and #1669 does not address this.Sphinx, the python documentation generator, has a tool called InterSphinx which allows linking to other documentation made with Sphinx. Not just base python documentation, but documentation from any project. This is really relevant when your project has dependencies. It's convenient to be able to quickly click a link to objects that were defined by another library. Not just core javascript objects. In fact, that's likely the least useful feature. For example I have a Phaser game I'm building. Several of the objects extend The Phaser documentation is made with jsdoc 3.6.7. You can see that the format of the URLS are really consistent. It seems that I should be able to create an external reference in my jsdoc file with something like this:
Then in my comment/docstring I have
The parser should search whatever normal source files I've provided for Phaser.GameObjects.Image. But, if it doesn't find the link there, it should look at the This doesn't seem like it would be insanely hard to implement. If nobody takes it up, maybe I will try to learn a little more about how jsdoc is coded and see if I can create a plugin for it. |
I created a plugin to link external docs inspired by Intersphinx. I'll see about making a PR to put it in the default plug ins eventually. Link: outerdocs |
This is a feature request.
It would be awesome if we can link JavaScript built-in types to external documentations like MDN.
current effect
desired effect
The text was updated successfully, but these errors were encountered: