Skip to content

Commit 966d6e0

Browse files
authored
Update README.adoc
1 parent 30c340f commit 966d6e0

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

README.adoc

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,40 @@
1-
= asciidoctor-remote-include-processor
1+
= :rocket: Asciidoctor Remote Include Processor Extension
2+
:uri-asciidoctorjs: https://github.com/asciidoctor/asciidoctor.js
23

3-
Remote include processor extension for asciidoctor
4+
ifdef::env-github[]
5+
image:https://github.com/feelpp/asciidoctor-remote-include-processor/workflows/npm-publish/badge.svg[npm-publish]
6+
image:https://img.shields.io/npm/v/@feelpp/asciidoctor-remote-include-processor[npmjs version, link=https://www.npmjs.com/package/@feelpp/asciidoctor-remote-include-processor]
7+
endif::[]
8+
9+
An extension for {uri-asciidoctorjs}[Asciidoctor.js] that allows to include remote files.
10+
11+
This is useful in antora.org[Antora] which does not enable this asciidoctor feature, see discussion https://gitlab.com/antora/antora/-/issues/246[here].
12+
13+
== Install
14+
15+
Install the dependencies:
16+
17+
$ npm install asciidoctor.js asciidoctor-remote-include-processor
18+
19+
== Usage
20+
21+
=== Register as an Asciidoctor extension in the Antora playbook of your website
22+
23+
[source,yaml]
24+
----
25+
asciidoc:
26+
extensions:
27+
- "@feelpp/asciidoctor-remote-include-extension"
28+
----
29+
30+
=== Include a remote file
31+
32+
In an Antora adoc page, include a remote file
33+
34+
```adoc
35+
[source,cpp]
36+
----
37+
include::https://raw.githubusercontent.com/feelpp/asciidoctor-remote-include-processor/master/test/helloworld.cpp[]
38+
----
39+
```
440

0 commit comments

Comments
 (0)