sphinx-examples
A small Sphinx extension to create examples of source markup and the result of rendering it in your documentation. This is useful if you wish to demonstrate the functionality of a new directive or role in Sphinx.
🚨This is very alpha software🚨: It is packaged primarily for convience and not heavily tested. Use at your own risk!
Installation
You can install sphinx-examples with pip:
pip install sphinx-examples
Usage
See the sphinx-examples documentation for more information.
Develop
To develop this extension, follow these steps:
-
Clone the repository locally
$ git clone https://github.com/executablebooks/sphinx-examples $ cd sphinx-examples
-
Install pre-commit hooks
$ pre-commit install
-
Install development and documentation dependencies
$ pip install -e .[sphinx]
The codebase for this package is in src/sphinx_examples.
Documentation is in docs/.
This package has no testing infrastructure, so be careful when using it! If it becomes more complex or with more features, we may add more testing around it in the future. For not it is packaged for convenience and re-use across EBP repositories.
Build the documentation
The documentation is currently not hosted anywhere, so if you'd like to preview the documentation "live", run the following command:
pip install -e .[sphinx]
sphinx-build docs docs/_build/html
Then browse the HTML files in docs/_build/html to see the rendered documentation.
Inspiration
This project takes heavy inspiration from the Bootstrap v5 documenation.
Metadata
Release files for sphinx-examples 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sphinx-examples-0.0.5.tar.gz | 4.8 kB | Without provenance | Details for sphinx-examples-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinx_examples-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for sphinx_examples-0.0.5-py3-none-any.whl |
Total release size: 9.7 kB
Release files / sphinx-examples-0.0.5.tar.gz
| Download URL | sphinx-examples-0.0.5.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
552772a5e6de97b6ca0930125f6272a9fb7b2d875afdc02c8e2fbec9eaf93ff4
|
|
BLAKE2b-256 checksum How to use checksums |
7719b5e920bbb6eecd4be19f0f7f796d72deecfe3988d675c6e703d05f2586de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Release files / sphinx_examples-0.0.5-py3-none-any.whl
| Download URL | sphinx_examples-0.0.5-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a10c744d65a79fa79637c8c814d5a5c473936a03590621b89d039e88d15ce322
|
|
BLAKE2b-256 checksum How to use checksums |
0b2109f718443b36710f978d6f1c474ad86ae23e707790f9e0d9e6124320ec43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Security for sphinx-examples 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.