-
Notifications
You must be signed in to change notification settings - Fork 40
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
Local testing? #112
Comments
You can set the |
@leotrs are you trying to test the extension to collaborate as a developer? If this is the case, you can take a look at https://sphinx-hoverxref.readthedocs.io/en/latest/development.html or are you trying to test the extension as a user to see how it looks like? If this is the case, you can import your project on Read the Docs and enable Pull Request build, open a PR that install the extension and check out how it looks. |
@humitos thanks for the answer - for now I was interested in local testing as a user. Looking forward to maybe contributing in the future! |
@leotrs you can use my solution #112 (comment) or the suggestion from @humitos. Let us know if you have more questions. |
This requirement is a bit too demanding for some use cases and makes any local development workflow incomplete. Would you consider reopening this issue until there's a more lightweight way to test the extension locally in a way that the RTD PR builder is not needed? Unfortunately, we're dropping this extension in orchest/orchest#1202 mainly because of this. cc @ricklamers |
@astrojuanlu reading the feedback from that PR, the only mention to hoverxref I found is the following:
Are there any other feedback that you could share with us that maybe is not written in that PR description/comments? Note the extension requires a backend server, so it won't work at all when reading the docs locally. All the suggestions and/or alternatives that we have commented in this issue and under the "Development" section of the docs are workarounds to have a preview of it. However, it's not 100% accurate for different reasons. The most noticeable being "loading outdated content into the tooltip" because the server has an older version of it compared with the local version. That said, even if we find a way to easily allow to test it locally, it could confuse users in a deeper and hard to understand way. I'm open to suggestions, and I'd appreciate your feedback on this. Thanks 🙏🏼 |
Thanks @humitos for taking it into consideration!
It's basically the two points I raised there.
|
Related but I think ideologically different issue: docs built without RTD and not deployed there, such as ones built locally or ones built for shipping in various distro packages, cannot display popups, but still make a request to the RTD API, so it would be very nice to just disable making the request in those cases. Is there an easy way for that (maybe as something passed to sphinx-build)? If not, can it be added? |
@wRAR when building on Read the Docs, an environment variable |
The documentation says this needs a backend server such as RTD. Is there a way of testing this locally? Thanks
The text was updated successfully, but these errors were encountered: