Compile a Metanorma document from source using metanorma compile.
- uses: actions-mn/compile@v2
with:
input-file: document.adoc
type: iso
extensions: html
output-dir: ./result| Input | Type | Default | Description |
|---|---|---|---|
|
string |
(required) |
Source file to compile. |
|
string |
(required) |
Type of standard to generate (e.g., |
|
string |
'' |
Comma-separated list of extensions to generate (e.g., |
|
string |
'' |
Format of source file (e.g., |
|
string |
'' |
Library to require prior to execution. |
|
boolean |
false |
Create wrapper folder for HTML output. |
|
boolean |
false |
Keep Asciimath in XML output instead of converting it to MathML. |
|
boolean |
false |
Encode HTML output images as data URIs. |
|
string |
'' |
Export Relaton XML for document to nominated filename. |
|
string |
'' |
Export source code fragments from this document to nominated directory. |
|
string |
'' |
Directory to save compiled files. |
|
boolean |
false |
Agree to all third-party licensing terms presented. Required for some document types. |
|
boolean |
true |
Skip the font installation process. |
|
boolean |
false |
Continue processing even when fonts are missing. |
|
boolean |
true |
Show progress for long running tasks (like downloads). |
|
boolean |
false |
Run using bundler (execute via |
| Output | Description |
|---|---|
|
Version of metanorma used for compilation. |
|
Output directory path (resolved from input or default). |
This action exports METANORMA_CMD to the environment, which contains the command used to run metanorma. This can be used in subsequent steps.
The action expects that metanorma-cli is already installed. You can install it by:
-
Using
actions-mn/setup@v3 -
Running
gem install metanorma-cli -
Using the metanorma Docker image
If metanorma-cli is installed with bundle install, make sure to pass use-bundler: true to the action.
- uses: actions-mn/compile@v2
with:
input-file: document.adoc
type: iso
extensions: html
output-dir: ./result
install-fonts: false- uses: actions-mn/compile@v2
with:
input-file: document.adoc
type: iso
extensions: html,doc
output-dir: ./result
install-fonts: false
agree-to-terms: true
continue-without-fonts: true- uses: actions-mn/compile@v2
with:
input-file: document.adoc
type: iso
extensions: html
output-dir: ./result
use-bundler: true
install-fonts: false