Skip to main content

sphinxext-remoteliteralinclude

CI

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)

Source distribution for sphinxext-remoteliteralinclude 0.6.1
File Size Uploaded
sphinxext_remoteliteralinclude-0.6.1.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinxext-remoteliteralinclude 0.6.1
File Interpreter ABI Platform
sphinxext_remoteliteralinclude-0.6.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page