Readthedocs.org: [FR] Have a special page listing linkable Spihnx objects per site

Created on 14 Sep 2020  路  2Comments  路  Source: readthedocs/readthedocs.org

Details

Spihnx has intersphinx to allow referencing objects exposed via other Sphinx-based websites. It's already exposed as objects.inv in a machine-readable format but it's not particularly easy for end-users to read it (the only relatively sane way is CLI-based).

I suggest embedding a preview page on each site that would have some interface (maybe even filter/search/example) exposing those linkable objects.

I've made https://webknjaz.github.io/intersphinx-untangled (src: https://github.com/webknjaz/intersphinx-untangled) as a very simple preview for myself but hopefully, you could draw some inspiration from this demo.

Expected Result

It should be easy to link against things on other RTD sites w/o hardcoding URLs.

Actual Result

It's not that easy. See also: https://github.com/sphinx-doc/sphinx/issues/8211.

Feature design decision

Most helpful comment

It's in our roadmap of ideas to implement a feature like this actually. Nice demo!

All 2 comments

It's in our roadmap of ideas to implement a feature like this actually. Nice demo!

@webknjaz We have this data in our DB already, so if you wanted to build a display on top it wouldn't be hard. I don't know if we're exposing it via our API at all, but that might be a good option:

https://github.com/readthedocs/readthedocs.org/blob/8e78d680d02aeba12644796b979ef62459f64932/readthedocs/sphinx_domains/models.py#L18

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PowerKiKi picture PowerKiKi  路  4Comments

boscorelly picture boscorelly  路  4Comments

humitos picture humitos  路  3Comments

lennartkoopmann picture lennartkoopmann  路  4Comments

humitos picture humitos  路  4Comments