mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-29 01:41:20 +08:00
Makefile: Add validate-epub target.
This commit is contained in:
@@ -242,6 +242,13 @@ validate-docx-golden-tests: ## validate docx golden tests against schema
|
||||
cd docx-validator && for f in ../test/docx/golden/*.docx; do ./validate $$f || exit 1 ; done
|
||||
.PHONY: validate-docx-golden-tests
|
||||
|
||||
validate-epub: ## generate an epub and validate it with epubcheck
|
||||
which epubcheck || exit 1
|
||||
tmp=$$(mktemp -d) && \
|
||||
pandoc test/epub/features.native -Mtitle="Features" --resource-path test/epub -o $$tmp/file.epub --number-sections --toc --quiet && \
|
||||
echo $$tmp/file.epub && \
|
||||
epubcheck $$tmp/file.epub
|
||||
|
||||
modules.csv: $(PANDOCSOURCEFILES)
|
||||
@rg '^import.*Text\.Pandoc\.' --with-filename $^ \
|
||||
| rg -v 'Text\.Pandoc\.(Definition|Builder|Walk|Generic)' \
|
||||
|
||||
Reference in New Issue
Block a user