-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Add custom embed views for intersphinx #1812
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
Comments
Related to #1758 |
GitHub now does this on issue/PR hover, which is a great implementation of it. |
Wikipedia also does a version of this. |
More details of the Wikipedia version: https://www.mediawiki.org/wiki/Page_Previews |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still working on this, need to finish it up :) |
I've been thinking a little more about this and how to emulate the Github behavior in our docs: when you hover an issue number in a Github conversation it shows a small popup with some useful information about it I think we could do something similar in a separate Sphinx extension (outside our core repository) without any change in our current source code. My idea is to override the ExampleThe author writes, :ref:`how to migrate from v1 <config-file/v2:Migrating from v1>`. and the HTML rendered is, <a class="reference internal"
href="v2.html#migrating-from-v1"
data-project="docs"
data-version="stable"
data-doc="config-file/v2"
data-section='Migrating from v1">
<span class="std std-ref">how to migrate from v1</span>
</a>
with a Javascript event linked to an API call for, |
Yea, I don't think we need much new backend code, just frontend/JS. |
I started writing this extension at https://github.com/humitos/sphinx-hoverxref There is a first implementation for the Python side of the extension already done that adds the attributes to the Front-end part is coming soon, but I will probably need some help to make it work nicely. |
I'm closing this issue. We have the extension built already and a beta release was published. There is no big known issues currently. In any case, we can track these problems on its own repository: https://github.com/readthedocs/sphinx-hoverxref |
We have the embed tooling, and intersphinx. It would be cool to build a basic UI that would do an embed on hover for intersphinx links. This would allow folks to see the referenced documentation inline, without having to click out.
The text was updated successfully, but these errors were encountered: