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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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_runpython-0.4.4-py3-none-any.whl.
File metadata
- Download URL: sphinx_runpython-0.4.4-py3-none-any.whl
- Upload date:
- Size: 91.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
055583dd35eb7e154305a0e83b454c5d9bca04d852bf87111a8578eda3701058
|
|
| MD5 |
b489b89f99769905422b0dcaf8f1f823
|
|
| BLAKE2b-256 |
c535c4aa89a20a72f086aa290d48fd723432a27c24aedcb1e978385923e56ff9
|