mirror of
https://github.com/anoma/juvix.git
synced 2024-09-11 16:26:33 +03:00
Fix demo example build (#1757)
The docs build was failing because it was trying to build the Demo example from the wrong directory.
This commit is contained in:
parent
9de850df75
commit
c66720d6d9
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -365,6 +365,7 @@ jobs:
|
||||
make install
|
||||
make html-examples
|
||||
make webapp-examples
|
||||
make demo-example
|
||||
|
||||
- name: Deploy HTML to github pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
|
8
Makefile
8
Makefile
@ -12,7 +12,6 @@ MDFILES:=$(patsubst docs/org/%,docs/md/%,$(ORGFILES:.org=.md))
|
||||
EXAMPLEMILESTONE=examples/milestone
|
||||
EXAMPLEHTMLOUTPUT=_docs/examples/html
|
||||
EXAMPLES= Collatz/Collatz.juvix \
|
||||
Demo/Demo.juvix \
|
||||
Fibonacci/Fibonacci.juvix \
|
||||
Hanoi/Hanoi.juvix \
|
||||
HelloWorld/HelloWorld.juvix \
|
||||
@ -23,6 +22,7 @@ EXAMPLES= Collatz/Collatz.juvix \
|
||||
|
||||
EXAMPLE_WEBAPP_OUTPUT=_docs/examples/webapp
|
||||
WEBAPP_EXAMPLES=TicTacToe/Web/TicTacToe.juvix
|
||||
DEMO_EXAMPLE=examples/demo/Demo.juvix
|
||||
|
||||
ORGTOMDPRG ?=pandoc
|
||||
ORGOPTS=--from org --to markdown_strict -s -o $@
|
||||
@ -71,6 +71,12 @@ $(EXAMPLES):
|
||||
@mkdir -p ${OUTPUTDIR}
|
||||
@juvix html $(EXAMPLEMILESTONE)/$@ --output-dir=$(CURDIR)/${OUTPUTDIR}
|
||||
|
||||
.PHONY: demo-example
|
||||
demo-example:
|
||||
$(eval OUTPUTDIR=$(EXAMPLEHTMLOUTPUT)/Demo)
|
||||
@mkdir -p ${OUTPUTDIR}
|
||||
@juvix html $(DEMO_EXAMPLE) --output-dir=$(CURDIR)/${OUTPUTDIR}
|
||||
|
||||
.PHONY: webapp-examples
|
||||
webapp-examples: $(WEBAPP_EXAMPLES)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user