Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,12 @@ if [ "${SPELLCHECK:-}" = "true" ]; then
rm output/expanded-spelling-errors.txt
fi

if [ "${BUILD_JATS:-}" != "false" ]; then
echo >&2 "Exporting JATS XML manuscript"
pandoc --verbose \
--data-dir="$PANDOC_DATA_DIR" \
--defaults=common.yaml \
--defaults=jats.yaml
fi

echo >&2 "Build complete"
7 changes: 7 additions & 0 deletions build/pandoc/defaults/jats.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Pandoc --defaults for JATS XML output.
# Load on top of common defaults.
to: jats
output-file: output/manuscript.xml
resource-path:
- '.'
- content