literalinclude from git repository.
Project description
sphinxcontrib-git_include
https://github.com/ousttrue/sphinxcontrib-git_include
literalinclude
from git repository.
using git cat-file -p {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.2.2.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for gitinclude-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c697c63a0e89efc71bcc5e4d50cce0c7f296224cbb2d2488a41b2bfde0d52fea |
|
MD5 | cce44fb88b2c3bd4d60f79fab1582640 |
|
BLAKE2b-256 | 625a616b36f461e1230c58bca06ea4a0dc5d34962b1c2733aebb4f21f64dfd0e |