This action customizes the Pandoc dockerfiles for use by CA/Browser Forum Chartered Working Groups to automatically produce Draft and Final Guidelines.
Required The name of the Markdown file to convert. This should be relative
to GITHUB_WORKSPACE.
In general, running actions/checkout
for the CWG repository is a necessary step before invoking this action, and
allows just passing the filename relative to the current repository.
Optional: The path, relative to
GITHUB_WORKSPACE,
that contains the previous "version" of markdown_file.
For example, on a push event, this would be the
before
SHA-1's file (e.g. using actions/checkout
with a ref of ${{ github.event.push.before }} and a custom path).
This is fairly experimental and prone to break. Redlines are only generated
if pdf is "true". Further, if this path does not exist, a redline is
simply not generated.
Generate a PDF from markdown_file. Default: "true".
The resulting PDF will be in the same directory of GITHUB_WORKSPACE as the
input file, but with a pdf extension.
Generate a DOCX. Default: "true".
The resulting PDF will be in the same directory of GITHUB_WORKSPACE as the
input file, but with a docx extension.
Check that all self-referencing links resolve. Default: "false".
This runs a simple Pandoc Lua filter to check and make sure that links to section headers resolve. Note that Pandoc removes leading numbers for sections, so the following would be valid:
# 1.1 Good Example
This is a link to the [Good Example](#good-example)
But this would fail:
# 1.1 Broken Example
This is a link to the [broken example](#1.1-broken-example)
Add a "DRAFT" watermark to the resulting document. Default: "false"
This is currently only supported for PDF outputs.
The path to the generated PDF file, if pdf was "true", relative to
GITHUB_WORKSPACE.
The path to the generated DOCX file, if docx was "true", relative to
GITHUB_WORKSPACE.
The path to the generated PDF redline, if pdf was "true" and diff_file
provided a path to a valid Markdown file.
uses: cabforum/build-guidelines-action@v1
with:
markdown_file: docs/BR.md
draft: true
lint: true