Skip to content

Commit

Permalink
Alter "preview" task within the Makefile to add local path to the HTM…
Browse files Browse the repository at this point in the history
…L version of the documentation for easier pick-up / preview
  • Loading branch information
mattkomarnicki committed Sep 2, 2022
1 parent cde7981 commit 9f7bce0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ build: src node_modules
docker run -it --init --rm -v $(PWD):/code -w /code node:9 npm run build

preview: build
docker run -it --init --rm -v $(PWD):/code -w /code apiaryio/client preview --path=/code/apiary.apib --output=/code/apiary.html
docker run -it --init --rm -v $(PWD):/code -w /code apiaryio/client preview --path=/code/apiary.apib --output=/code/apiary.html && \
echo "\nView documentation at file://$(PWD)/apiary.html"

watch: node_modules
docker run -it --init --rm -v $(PWD):/code -w /code node:9 npm run watch
Expand Down

0 comments on commit 9f7bce0

Please sign in to comment.