Skip to content

Commit

Permalink
Fix try-catch hiding book compilation failures
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMDoerner authored Oct 8, 2023
1 parent c3aacd3 commit c4d2452
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions owlkettle.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,9 @@ task genBook, "Generate the owlkettle nimibook book docs":
exec "./nbook --mm:refc init"
echo "INITIALIZED NIMIBOOK"

try:
exec "./nbook build --mm:refc --define:owlkettleNimiDocs --path:."
echo "BUILT NIMIBOOK"
except CatchableError:
discard
exec "./nbook build --mm:refc --define:owlkettleNimiDocs --path:."
echo "BUILT NIMIBOOK"

## Needed as the nimibook will serve the copied images, while the raw md files
## in the repository will serve the originals
exec "cp -r ./docs/assets ./compiledBook/docs"
exec "cp -r ./docs/assets ./compiledBook/docs"

0 comments on commit c4d2452

Please sign in to comment.