Skip to content

Instantly share code, notes, and snippets.

@bskinn
Last active November 12, 2024 23:09
Show Gist options
  • Save bskinn/0e164963428d4b51017cebdb6cda5209 to your computer and use it in GitHub Desktop.
Save bskinn/0e164963428d4b51017cebdb6cda5209 to your computer and use it in GitHub Desktop.
Various intersphinx mappings
# The entries in this file are checked regularly for validity via the Github Action
# sited at github.com/bskinn/intersphinx-gist.
# Please feel free to post an issue at that repo if any of these mappings don't work for you,
# or if you're having trouble constructing a mapping for a project not listed here.
Python 3 [latest]: ('https://docs.python.org/3/', None)
Python 3 [3.x]: ('https://docs.python.org/3.9/', None)
attrs [stable]: ('https://www.attrs.org/en/stable/', None)
Django [dev]: ('https://docs.djangoproject.com/en/dev/', 'https://docs.djangoproject.com/en/dev/_objects/')
Flask [2.2.x]: ('https://flask.palletsprojects.com/en/2.2.x/', None)
Flask [1.1.x]: ('https://flask.palletsprojects.com/en/1.1.x/', None)
h5py [latest]: ('https://docs.h5py.org/en/latest/', None)
matplotlib [stable]: ('https://matplotlib.org/stable/', None)
numpy [stable]: ('https://numpy.org/doc/stable/', None)
pandas [latest?]: ('https://pandas.pydata.org/docs/', None)
Pyramid [latest]: ('https://docs.pylonsproject.org/projects/pyramid/en/latest/', None)
scikit-learn [stable]: ('https://scikit-learn.org/stable/', None)
Sphinx [master]: ('https://www.sphinx-doc.org/en/master/', None)
sympy [latest]: ('https://docs.sympy.org/latest/', None)
# Because of occasional historical complexity to SciPy's docs,
# I'm breaking it out separately.
#
# The form shown for v1.8.1 is expected to work for all versions
# from v1.7.0 onward. The additional versions v1.7.1 and v1.8.0 are
# included here for robustness of testing.
#
# The previous idiosyncratic entry for v1.8.0 is no longer needed now that the
# docs hosting config has been fixed, see github.com/scipy/scipy/issues/14267
# and issues/PRs linked therein.
#
# The form shown for v1.6.3 should work for all versions back to at least v1.3.0;
# just replace the version number in the URL.
#
scipy [latest]: ('https://docs.scipy.org/doc/scipy/', None)
scipy [1.8.1]: ('https://docs.scipy.org/doc/scipy-1.8.1/', None)
scipy [1.8.0]: ('https://docs.scipy.org/doc/scipy-1.8.0/', None)
scipy [1.7.1]: ('https://docs.scipy.org/doc/scipy-1.7.1/', None)
scipy [1.7.0]: ('https://docs.scipy.org/doc/scipy-1.7.0/', None)
scipy [1.6.3]: ('https://docs.scipy.org/doc/scipy-1.6.3/reference/', None)
# This should be a good template for most any docs hosted on RtD.
sarge [latest]: ('https://sarge.readthedocs.io/en/latest/', None)
@ConstantinoSchillebeeckx

I often find it difficult to know exactly how to reference a particular object, so I often do:

python -m sphinx.ext.intersphinx https://pandas.pydata.org/docs/objects.inv > objects.inv

And then grep through the output to figure out if e.g. I should use :attr: or :meth:

@bskinn
Copy link
Author

bskinn commented Apr 28, 2022

@ConstantinoSchillebeeckx Yep, that's definitely a good way to pull out that info.

Another way is my project sphobjinv, using the suggest CLI tool, e.g.:

$ pip install sphobjinv
$ sphobjinv suggest -su https://pandas.pydata.org/docs/objects.inv dataframe

They both give the same information, just presented differently.

@bskinn
Copy link
Author

bskinn commented May 20, 2022

SciPy mappings updated after the team's fix to the docs hosting setup.

@agriyakhetarpal
Copy link

Hi! Probably worth adding Jax? They deploy just the latest version to RTD, though: https://jax.readthedocs.io/en/latest/

@bskinn
Copy link
Author

bskinn commented May 31, 2024

Heya, @agriyakhetarpal! Thanks for the suggestion, but I don't plan to put any more RTD examples into the gist, seeing as how any RTD mapping entries are going to usually follow the same template as the sarge listing that's already there.

On checking, it looks like Matthias already has Jax in Labs' intersphinx_registry, so that's good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment