-
Notifications
You must be signed in to change notification settings - Fork 41
Default hoverxref_api_host
to the proxied API
#134
Conversation
docs/configuration.rst
Outdated
|
||
Default: ``https://readthedocs.org`` | ||
Default: ``/_`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we only want to default this value when running on RTD, don't we? For dev setup this will cause weird breakage for a lot of users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's documented that this should be changed to rtd.org in the dev docs, for the docs of this extension we are checking if we are running on rtd
Lines 66 to 68 in f6e533f
# Used when building the documentation locally. | |
if os.environ.get('READTHEDOCS') != 'True': | |
hoverxref_api_host = 'https://readthedocs.org' |
People testing this locally will need to define the hoverxref_project
and hoverxref_version
anyway.
It would be good to update this PR. I think we need:
|
Bumping this, since I had a customer just run into this. Would be good to enable this. |
Changed to just default to |
I think this change makes sense, but also want to make sure we have a plan moving forward w/ hoverxref support in readthedocs-client. So leaving the review to @humitos to coordinate. |
My plan is that hoverxref/tooltips re-implemented there 1 and this extension won't be needed anymore in the future. In my opinion, we should eventually deprecate this Sphinx extension and archive the repository. However, we could keep this extension if we want to have full control of where (on what Sphinx roles) to show tooltips -- which is the complex part of this extension and something you never liked too much since you want tooltips everywhere 😄 . Anyways, something to consider when talking about the user's API in readthedocs/addons#13 Footnotes
|
We should do a new release with this change |
This also doesn't require .com users changing anything to use the extension.