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)
Built Distribution
Close
Hashes for gitinclude-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58b9c69579e1fbb19f00d4c9e562be2eba079742903b8c4af276033385813a70 |
|
MD5 | af1de77a99459869dc53dc32f5b57ad8 |
|
BLAKE2b-256 | 5dca5b52c10c6e741f96323096dd158f1788069ec9e9c048670569e3eb673f36 |