Populate the Sphinx 'intersphinx_mapping' dictionary from the project's requirements.
Project description
Populate the Sphinx ‘intersphinx_mapping’ dictionary from the project’s requirements.
Docs |
|
---|---|
Tests |
|
PyPI |
|
Anaconda |
|
Activity |
|
QA |
|
Other |
This avoids having to manually compile (and keep updated) a mapping like:
intersphinx_mapping = {
"attrs": ('https://www.attrs.org/en/stable/', None),
"Flask": ('https://flask.palletsprojects.com/en/1.1.x/', None),
"matplotlib": ('https://matplotlib.org/stable/', None),
"numpy": ('https://numpy.org/doc/stable/', None),
"pandas": ('https://pandas.pydata.org/docs/', None),
"Pyramid": ('https://docs.pylonsproject.org/projects/pyramid/en/latest/', None),
"scikit-learn": ('https://scikit-learn.org/stable/', None),
"scipy": ('https://docs.scipy.org/doc/scipy/reference/', None),
"Sphinx": ('https://www.sphinx-doc.org/en/stable/', None),
}
# Source: https://gist.github.com/bskinn/0e164963428d4b51017cebdb6cda5209
Installation
seed_intersphinx_mapping can be installed from PyPI or Anaconda.
To install with pip:
$ python -m pip install seed_intersphinx_mapping
To install with conda:
First add the required channels
$ conda config --add channels http://conda.anaconda.org/conda-forge $ conda config --add channels http://conda.anaconda.org/domdfcoding
Then install
$ conda install seed_intersphinx_mapping
Enable seed_intersphinx_mapping by adding “seed_intersphinx_mapping” to the extensions variable in conf.py:
extensions = [
...
"seed_intersphinx_mapping",
]
For more information see https://www.sphinx-doc.org/en/master/usage/extensions/index.html#third-party-extensions .
See the documentation for more information on configuring seed_intersphinx_mapping.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for seed_intersphinx_mapping-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5573f9f184061af1a819f93ce0327a923191886c3d78da358eb80202772ea149 |
|
MD5 | 206bf5162aa95191e5cc0016167bbae8 |
|
BLAKE2b-256 | c973a49c36ee6ff8c19216a5729754bc1efdfcb0b193cb2d3d0bc3a269d6db20 |
Hashes for seed_intersphinx_mapping-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18d91391570858b302a98ca74a5c5bf93294c181bf9baf89ed76fda1b78eedf0 |
|
MD5 | 70b5db5ff6dd661608891b67ea7ffa19 |
|
BLAKE2b-256 | 827f0e054fb60d702caf59cc907baf9404245629ea97e6f0a85307016874c25c |