Skip to main content

literalinclude from git repository.

Project description

sphinxcontrib-git_include

https://pypi.org/project/gitinclude/

literalinclude from git repository.

  • using git cat-file -p {rev}:{path_to_file}
  • using git show {rev}:{path_to_file}

install

> pip install gitinclude

Sample

https://ousttrue.github.io/sphinxcontrib-gitinclude/

Sphinx: conf.py

extensions = [
    "gitinclude",
]

Sphinx: usage

myst

``{gitinclude} HEAD^ gitinclude/__init__.py
:language: python
:linenos:
``

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

gitinclude-0.3.1.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

gitinclude-0.3.1-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

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