diff --git a/examples/jotdown_wasm/Makefile b/examples/jotdown_wasm/Makefile index 5c0c34c..96ab265 100644 --- a/examples/jotdown_wasm/Makefile +++ b/examples/jotdown_wasm/Makefile @@ -7,9 +7,19 @@ ${WASM}: ${SRC} wasm: ${WASM} -run: ${WASM} +index.html: Makefile demo.html + echo '' > $@ + echo '' >> $@ + echo 'Jotdown Demo' >> $@ + echo '' >> $@ + echo '' >> $@ + cat demo.html >> $@ + echo '' >> $@ + echo '' >> $@ + +run: ${WASM} index.html python -m http.server clean: - rm -rf pkg + rm -rf pkg index.html cargo clean diff --git a/examples/jotdown_wasm/index.html b/examples/jotdown_wasm/demo.html similarity index 100% rename from examples/jotdown_wasm/index.html rename to examples/jotdown_wasm/demo.html