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 details)
Built Distribution
File details
Details for the file gitinclude-0.3.1.tar.gz
.
File metadata
- Download URL: gitinclude-0.3.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0ebb35be8e3f2f6e2fc08eae37436895b278a432d01604ef4575fa609668a0e |
|
MD5 | 22c28e5df0d3965ad6fd87a429710ede |
|
BLAKE2b-256 | 23e10e492a4d08cffe44dac206e0b0aacac11c3772c29947f04a794c0ac136fa |
File details
Details for the file gitinclude-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: gitinclude-0.3.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58b9c69579e1fbb19f00d4c9e562be2eba079742903b8c4af276033385813a70 |
|
MD5 | af1de77a99459869dc53dc32f5b57ad8 |
|
BLAKE2b-256 | 5dca5b52c10c6e741f96323096dd158f1788069ec9e9c048670569e3eb673f36 |