From a2dfc502775ec9652af646466589d809ac5d9cd5 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Fri, 20 Apr 2018 11:17:08 -0400 Subject: [PATCH] Add example here and reenable auto-deployment --- .travis.yml | 22 ++-- Makefile | 6 +- src/python.html | 261 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 277 insertions(+), 12 deletions(-) create mode 100644 src/python.html diff --git a/.travis.yml b/.travis.yml index d75743333..c30337b31 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,17 +30,17 @@ install: script: - make test -# deploy: -# provider: pages -# github-token: "$GITHUB_TOKEN" -# skip-cleanup: true -# keep-history: false -# repo: iodide-project/pyodide-demo -# verbose: false -# local-dir: build -# target-branch: master -# on: -# branch: master +deploy: + provider: pages + github-token: "$GITHUB_TOKEN" + skip-cleanup: true + keep-history: false + repo: iodide-project/pyodide-demo + verbose: false + local-dir: build + target-branch: master + on: + branch: master env: global: diff --git a/Makefile b/Makefile index 729792b87..3ac55d6ab 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ PANDAS_LIBS=\ SITEPACKAGES=root/lib/python$(PYMINOR)/site-packages -all: build/pyodide.asm.html build/pyodide.js build/pyodide_dev.js +all: build/pyodide.asm.html build/pyodide.js build/pyodide_dev.js build/python.html build/pyodide.asm.html: src/main.bc src/jsimport.bc src/jsproxy.bc src/js2python.bc \ @@ -62,6 +62,10 @@ build/pyodide.js: src/pyodide.js sed -i -e 's#{{DEPLOY}}#https://iodide-project.github.io/pyodide-demo/#g' $@ +build/python.html: src/python.html + cp $< $@ + + build/test.html: src/test.html cp $< $@ diff --git a/src/python.html b/src/python.html new file mode 100644 index 000000000..7f6e28a02 --- /dev/null +++ b/src/python.html @@ -0,0 +1,261 @@ + + + + +Python - iodide + + + + +
+ + +