Open nmatton opened 2 months ago
PHP Sphinx domain is not currently supported.
I think it could be added by doing something similar to what we are doing with the Python domain:
Note that I'm not currently working on this extension to add new features since we replacing it with a more generic feature built-in into the Read the Docs platform.
Thanks for your answer. I make it working on a local version (I have the tooltip openned with the "Loading...") but nothing when pushed to RTD.
What I did is
sphinx-hoverxref==1.4.0
from requirements.txt
extension.py
as suggested (basically duplicating the lines 124-133 by replacing "py" by "php" + renaming "extension.py" to "hoverxref.py" and fixing (absolute) import issueimport os, sys; sys.path.insert(0,os.path.abspath('./hoverxref'))
and replacing 'hoverxref.extension',
by 'hoverxref',
in extensionsHowever, the build in RTD does not show any error but it acts just like hoverxref was unexistent ...
I also have those lines in the build
Using default style (tooltip) for unknown typ (hoverxref). Define it in hoverxref_role_types.
Using default style (tooltip) for unknown typ (meth). Define it in hoverxref_role_types.
Using default style (tooltip) for unknown typ (hoverxref). Define it in hoverxref_role_types
which makes me think that hoverxref is present (I'm ok with the default, reason why I didn't define them in hoverxref_role_types. I have the same log warning in the local build)
Any idea ?
RTD build : https://app.readthedocs.org/projects/tisaac-boilerplate/builds/25533610/
Thanks !
I make it working on a local version (I have the tooltip openned with the "Loading...") but nothing when pushed to RTD.
Yeah, the extension doesn't work locally.
You should confirm that on Read the Docs you are executing your modified version of hoverxref. I guess you are not, because it should show at least the same "Loading..." message.
I'm not completely familliar with the RTD architecture and domain principles, but I struggle to add crossref to a PHP class (or watherver) definition.
In short, when using the "default" cross-ref system, all works using
However, I cannot find the equivalent using hoverxref
Here is my conf.py
And the file where the class is defined
Can you give me some hint to solve the issue ? Thanks
Future work will be to cross ref some methods of the class and so on...
Thanks !