An AsciiDoctor extension that enables file includes from Git repositories.
It only affects include
directives for URIs beginning with git@
.
Load the extension:
asciidoctor -r asciidoctor-git-include [index.adoc]
Then, inside your AsciiDoc file, use an include
statement like normal, pointing to an URI that begins with git@
.
Save this one-line Asciidoc file as README.adoc
:
include::[email protected][]
Then run
asciidoctor -r asciidoctor-git-include README.adoc
and open README.html
in your browser.
include::[email protected][repository=/path/to/repository,revision=dbe7eb05972d24eb153495b543fe5ba0b362b0b1]
include::[email protected][revision=develop]