sphinx-runpython implements sphinx extensions including one to execute code and add the output to the documentation. The library is released on pypi/sphinx-runpython and its documentation is published at sphinx-runpython.
epkg
It implements a list of recurring urls in documentation.
conf.py
epkg_dictionary = {'title': 'url' }
rst
:epkg:`title` -> `title <url>`_
runpython
Executes code in the documentation and adds it to documentation.
.. runpython::
:showcode:
print("python code")
<<<
print("python code")
>>>
python code
List of directives
Metadata
Release files for sphinx-runpython 0.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sphinx_runpython-0.4.4-py3-none-any.whl | Python 3 | none | any | Details |
Release files / sphinx_runpython-0.4.4-py3-none-any.whl
| Download URL | sphinx_runpython-0.4.4-py3-none-any.whl |
|---|---|
| Size | 91.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
055583dd35eb7e154305a0e83b454c5d9bca04d852bf87111a8578eda3701058
|
|
BLAKE2b-256 checksum How to use checksums |
c535c4aa89a20a72f086aa290d48fd723432a27c24aedcb1e978385923e56ff9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|