Automatic links from code examples to reference documentation.
Project description
Automatic links from Python code examples to reference documentation at the flick of a switch! sphinx-codeautolink analyses the code in your documentation and inserts links to definitions that you use.
For a live demo, see our online documentation on Read The Docs.
Installation
sphinx-codeautolink can be installed from the Package Index via pip.
$ pip install 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 multiple examples and setting default import statements among other things, have a look at 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
File details
Details for the file sphinx-codeautolink-0.2.1.tar.gz
.
File metadata
- Download URL: sphinx-codeautolink-0.2.1.tar.gz
- Upload date:
- Size: 27.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b15e91ddd9c959062b679e5b905e706bd9d0c52a1be6b51690a906279c7cf092 |
|
MD5 | 8651bd5735005c0d814fdd6cdfbdf16d |
|
BLAKE2b-256 | b9dfe2a4950dd3c9cb6903f86957cf7a2b862b9e257cb83c8b6235346c5e9d57 |
File details
Details for the file sphinx_codeautolink-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: sphinx_codeautolink-0.2.1-py3-none-any.whl
- Upload date:
- Size: 17.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 194574d7dfb84df32343cdde1029b35c3e90abc51d1784cd740181dfb7538366 |
|
MD5 | 4368033a04ca3d88412743f59bcba15b |
|
BLAKE2b-256 | c609894a0c218e17f71cd3d1a7699e4a85e322ef394561f2a88fc83e23245604 |