Open pique-b opened 7 months ago
This extension only works for projects hosted on Read the Docs (we have a warning note in the installation page of the documentation: https://sphinx-hoverxref.readthedocs.io/en/latest/installation.html) since it requires a backend server.
So, building the documentation locally will succeed, but won't render the tooltips since it's making a request to Read the Docs and not finding the project hosted there.
Oh! So does it mean that there is no way the documentation can be tested except by porting it to RTD?
Is there any chance (in the foresseable future) of the feature being extended to locally developed documentation?
Oh! So does it mean that there is no way the documentation can be tested except by porting it to RTD?
Short answer: No.
However, it's possible, but not easy and it involves installing a Read the Docs development instance locally. It's documented in https://sphinx-hoverxref.readthedocs.io/en/latest/development.html and I wouldn't recommend you to follow those steps just for "testing the extension locally".
If you are considering not using Read the Docs for your documentation, I wouldn't recommend you to use this extension. On the other hand, if you plan to use RTD, you can import your project there and use pull request previews to test the docs easily. See https://docs.readthedocs.io/en/latest/pull-requests.html
Is there any chance (in the foresseable future) of the feature being extended to locally developed documentation?
We don't plan to work on this currently. You can find more information about this in https://github.com/readthedocs/sphinx-hoverxref/issues/69
I have been trying to implement tooltip functionality in my Sphinx document for a project.
I have installed hoverxref in my virtual environment and after running the sphinx build, I am unable to see the tooltips being displayed beyond the small tooltip window saying '
Loading...
'.I am using the following to implement the tooltip:
Before a section header, I have added the following label:
.. _my-test-tooltip:
Then from the next section 'A New Section' I am trying to generate the tooltip.
In this New Section I am implementing the tooltip like this:
This line contains a hoverxref tooltip :hoverxref:`here is a tooltip <my-test-tooltip>`.
However, no tooltip content is generated as stated above.
This is my requyiments.txt:
In my config file I have added the following:
As stated above, I am working in virtual env and rest of the Sphinx functionalities are working.
Checked this issue Content not loading #224 but find it still open and could not gather a way from it to resolve the issue I am facing.
I am on Python 3.9 and Sphinx v7.2.6.
What do I need to do to make this work?