From 7464c83c5a45e4b7ba7c3eeed4834115031cb8e7 Mon Sep 17 00:00:00 2001 From: "D. Moonfire" Date: Sat, 15 Oct 2022 07:35:22 -0500 Subject: [PATCH] fix: updating build --- publication.json | 4 ++-- scripts/build.sh | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/publication.json b/publication.json index d83aa2c..2cfd53c 100644 --- a/publication.json +++ b/publication.json @@ -1,11 +1,11 @@ { "metadata": { - "title": "{{edition.fedran.source.title}}", + "title": "Rejected Research", "author": "D. Moonfire", "language": "en", "theme": "@fedran/writing-theme", "outputDirectory": ".", - "outputFilename": "dmoonfire-{{edition.fedran.source.title_slug}}-{{edition.name}}-{{edition.version}}.{{edition.ext}}", + "outputFilename": "dmoonfire-{{edition.fedran.source.identifier_slug}}-{{edition.version}}.{{edition.ext}}", "markdown": { "extensions": [ { diff --git a/scripts/build.sh b/scripts/build.sh index 5693cc3..3447244 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -10,9 +10,14 @@ cd $(dirname $(dirname $0)) log "setting up project" ./scripts/setup.sh || exit 1 +# Clean up the old files. +log "cleaning old builds" +rm -f dmoonfire* + # Build the project outputs. log "building PDF" -npm run build:pdf || exit 1 +./node_modules/.bin/mfgames-writing-format build pdf || exit 1 log "building EPUB" -npm run build:epub || exit 1 +./node_modules/.bin/mfgames-writing-format build epub || exit 1 +epubcheck dmoonfire*.epub || exit 1