Skip to main content

Extending literalinclude to include remote URLs

Project description

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"]

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinxext-remoteliteralinclude-0.2.0.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page