Skip to main content

Extending literalinclude to include remote URLs

Project description

sphinxcontrib-remoteliteralinclude

Sphinx extension that extends the literalinclude directive to allow remote URLS

Installation

python3 -m pip install sphinxcontrib-remoteliteralinclude

Usage

Simply just use it as you normally would a normal literalinclude

.. remoteliteralinclude:: 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

File details

Details for the file sphinxcontrib-remoteliteralinclude-0.0.4.tar.gz.

File metadata

  • Download URL: sphinxcontrib-remoteliteralinclude-0.0.4.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.6

File hashes

Hashes for sphinxcontrib-remoteliteralinclude-0.0.4.tar.gz
Algorithm Hash digest
SHA256 aba2e7e66abf2c97d3eecb558e45e863b461d273681cb3dc970f4083ff216bb4
MD5 9bc4659619503ac18708dfc5f6ee124d
BLAKE2b-256 d0752bf35a6ca37a514321484872de158141fe0af49de2c3e18b3747c5f0dfa6

See more details on using hashes here.

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