-
Notifications
You must be signed in to change notification settings - Fork 81
Linking to param types with intersphinx #158
Comments
For reference, here is a plain text copy of the generated inventory |
First of all, that is a pretty cool project, and I hope you succeed and turn it into something others can pull off the shelf. :-) On your problem: sphinx-js doesn't actually have an opinion on whether String is a function or a class. It emits the RST field list |
Thank you for this information! I'll track where that RST is emitted, track back to sphinx-js code and troubleshoot from there. This is indeed a nice project. I'm trying to help lower the barrier of using Sphinx for colleagues. See also related (not to this issue but to my project ;)) : |
You're welcome! sphinx-js emits the relevant RST in renderers.py, in JsRenderer._fields(). I'd paste something like it emits into an RST doc, run Sphinx over it, and see if you have the same problem. I expect you'll end up making a patch to Sphinx itself, but, if you can fix it just by tweaking the RST, I'm happy to consider changes to sphinx-js's emissions. |
Hi there!
First, thank you a lot for this project!
I am documenting a class:
And I have built an objects.inv that provides reference for using intersphinx with the primitives at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference.
It is configured as usual in my conf.py:
Alas! It can't find the parameter types!
This
@param {String}
generates the following warning:In my inventory, I have
String
as ajs:class
, not ajs:function
.I can workaround that with a custom sphinx extension:
So, in your opinion, does this should be fixed in sphinx-js, or should I consider javascript classes also as javascript functions when generating the inventory?
The text was updated successfully, but these errors were encountered: