Automatic links from code examples to reference documentation.
Project description
sphinx-codeautolink makes code examples clickable by inserting links from individual code elements to the corresponding reference documentation. We aim for a minimal setup assuming your examples are already valid Python.
For a live demo, see our online documentation on Read The Docs.
Installation
sphinx-codeautolink can be installed from the following sources:
$ pip install sphinx-codeautolink
$ conda install -c conda-forge sphinx-codeautolink
Note that the library is in early development, so version pinning is advised. To enable sphinx-codeautolink, modify the extension list in conf.py. Note that the extension name uses an underscore rather than a hyphen.
extensions = [
...,
"sphinx_codeautolink",
]
That’s it! Now your code examples are linked. For ways of concatenating examples, setting default import statements, or customising link style among other things, see the online documentation.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_codeautolink-0.17.5.tar.gz.
File metadata
- Download URL: sphinx_codeautolink-0.17.5.tar.gz
- Upload date:
- Size: 59.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75098c20aa32de01481fa62409e6d2fbfdde760e6696ae9beb233a77bcb49283
|
|
| MD5 |
ad09c4c5e4b26de7dd6652d202b19696
|
|
| BLAKE2b-256 |
47cf96065111f706555ca3e0b5a7f57f47bae48983d48223d09f8800ba4b9b00
|
File details
Details for the file sphinx_codeautolink-0.17.5-py3-none-any.whl.
File metadata
- Download URL: sphinx_codeautolink-0.17.5-py3-none-any.whl
- Upload date:
- Size: 35.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a84595ad3a12da93f82796e638f27e239d07b388037f3d3f69d65fc7ea6e05bf
|
|
| MD5 |
15260eb15931b03ebb0684c8ccf43016
|
|
| BLAKE2b-256 |
7be2a7232766639b8a447e5e1884f6f33bd704d213bc5d4eb376f81cd5a0cb1d
|