sphinxext-remoteliteralinclude
Sphinx extension that extends the literalinclude directive to allow remote URLS
Installation
Please install the extension via pip using the following command:
python3 -m pip install sphinxext-remoteliteralinclude
then in your conf.py under extensions, it should look like the following:
extensions = ["sphinxext.remoteliteralinclude"]
Configuration
There are two optional configuration for retry logic for failed requests.
remoteliteralinclude_retry_time = 1.0
remoteliteralinclude_max_retry_time = 180.0
The retry_time is the base time in seconds to wait, with an exponential backoff until max_retry_time (in seconds) is reached.
Usage
Simply just use it as you normally would a normal literalinclude
.. rli:: https://example.com/example.java
:language: java
:lines: 10-29
:linenos:
:lineno-start: 10
Important Notes
This is simply a modification of the normal literalinclude extension. Near all of the code is the exact same. Modifications are made by Eli Barnett, with pip module creation by Dalton Smith.
Using the extension to reference local files will not work. Use the regular literalinclude extension in that case.
Metadata
Release files for sphinxext-remoteliteralinclude 0.6.1
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 |
|---|---|---|---|---|
| sphinxext_remoteliteralinclude-0.6.1.tar.gz | 7.2 kB | Without provenance | Details for sphinxext_remoteliteralinclude-0.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinxext_remoteliteralinclude-0.6.1-py3-none-any.whl | Python 3 | none | any | Details for sphinxext_remoteliteralinclude-0.6.1-py3-none-any.whl |
Total release size: 13.9 kB
Release files / sphinxext_remoteliteralinclude-0.6.1.tar.gz
| Download URL | sphinxext_remoteliteralinclude-0.6.1.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8b072a6e88a336662810017da3d4eeb154a4ef4ca8b42db69015dbbd36189c7
|
|
BLAKE2b-256 checksum How to use checksums |
aab87a579e862fdad35933151e028aadebe064099a9a5c750a2a42ad70b9da74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / sphinxext_remoteliteralinclude-0.6.1-py3-none-any.whl
| Download URL | sphinxext_remoteliteralinclude-0.6.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70271f0404476c08105abff5b30c636864461c1970e47efae0655c5774429a5c
|
|
BLAKE2b-256 checksum How to use checksums |
30a6a3d756ec2ae07d7ddb5094b2874366d1dd33a512454139f29c729f215543
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for sphinxext-remoteliteralinclude 0.6.1
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.