File tree Expand file tree Collapse file tree 3 files changed +48
-5
lines changed
Expand file tree Collapse file tree 3 files changed +48
-5
lines changed Original file line number Diff line number Diff line change 1515 with :
1616 node-version : ' 12'
1717 - name : Build dist
18- run : |
19- npm run lint
20- npm run dist
18+ run : |
19+ npm install
20+ npm run lint
21+ npm run dist
2122 - name : Publish if version has been updated
2223 uses : pascalgn/npm-publish-action@06e0830ea83eea10ed4a62654eeaedafb8bf50fc
2324 with : # All of theses inputs are optional
Original file line number Diff line number Diff line change 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
541----
642.code here
Original file line number Diff line number Diff line change 1+ #include < iotream>
2+
3+ int main (int argc, char ** argv )
4+ {
5+ std::cout << " Hello World!" << std::endl;
6+ }
You can’t perform that action at this time.
0 commit comments