Include directives for sphinx
git clone https://github.com/tmerello2001/spxinclude.git
pip install .
Add the following line to your requirements file
git+https://github.com/tmerello2001/spxinclude.git@master
Add the extension to config.py
extensions = [
'spxinclude.gitremote'
]
Use .. git-remote-include::
directive to include remote files from repos
.. git-remote-include:: {repo (ssh or https)},&{branch},&{file to include}
For example
.. git-remote-include:: https://github.com/tmerello2001/spxinclude.git,&master,&README.md