Skip to content

Commit

Permalink
Publish new browser version with turtle graphics.
Browse files Browse the repository at this point in the history
  • Loading branch information
donkirkby committed Dec 21, 2021
1 parent ffa1025 commit 3d1fee7
Show file tree
Hide file tree
Showing 37 changed files with 129 additions and 583 deletions.
12 changes: 5 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,20 +199,18 @@ GitHub, and install Docker. After that, follow these steps for each release.
Replace the version number with whatever you just built.
3. Find the `remove_modules.txt` file in the pyodide project, and remove
`turtle.py` from the list.
3. After the package files are in place, run Pyodide's `run_docker` script with
4. After the package files are in place, run Pyodide's `run_docker` script with
the `--pre-built` option, and then run `make` inside the container. See the
Pyodide project for full instructions. Sometimes, I've had to remove all
build products and rebuild. Either `make clean` or `git clean -f -Xd`.
4. After the lengthy build process, run the
`live-py-plugin/test/PySrc/tools/serve_demo.py` script. It will copy all
the Pyodide files into the demo directory.

To update the ReactJS files, change to the `html` folder, and run
`npm run build`. You can also use `npm start` to test the ReactJS files without
Pyodide. After building the ReactJS files, use `serve_demo.py` to copy them
into the web site.
Pyodide.

After updating the files, test them out on `http://localhost:8000/`.
After updating the files, test them locally with GitHub pages (next section).
Then commit the file changes, push, and create a release on GitHub. (Finish the
other releases before marking the release on GitHub, if you're releasing more.)

[Pyodide]: https://github.com/iodide-project/pyodide
[PR #506]: https://github.com/iodide-project/pyodide/pull/506
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/footer-scripts.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{% if page.is_react %}
<script type="application/javascript">self.languagePluginUrl=self.location.protocol+"//"+self.location.host+self.location.pathname+"pyodide/",self.analyze=function(l){return[l,"output\n"+l]}</script><script type="application/javascript" src="pyodide/pyodide.js"></script><script>!function(l){function e(e){for(var r,t,n=e[0],o=e[1],u=e[2],f=0,i=[];f<n.length;f++)t=n[f],p[t]&&i.push(p[t][0]),p[t]=0;for(r in o)Object.prototype.hasOwnProperty.call(o,r)&&(l[r]=o[r]);for(s&&s(e);i.length;)i.shift()();return c.push.apply(c,u||[]),a()}function a(){for(var e,r=0;r<c.length;r++){for(var t=c[r],n=!0,o=1;o<t.length;o++){var u=t[o];0!==p[u]&&(n=!1)}n&&(c.splice(r--,1),e=f(f.s=t[0]))}return e}var t={},p={1:0},c=[];function f(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return l[e].call(r.exports,r,r.exports,f),r.l=!0,r.exports}f.m=l,f.c=t,f.d=function(e,r,t){f.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.t=function(r,e){if(1&e&&(r=f(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var t=Object.create(null);if(f.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)f.d(t,n,function(e){return r[e]}.bind(null,n));return t},f.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(r,"a",r),r},f.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},f.p="./";var r=window.webpackJsonp=window.webpackJsonp||[],n=r.push.bind(r);r.push=e,r=r.slice();for(var o=0;o<r.length;o++)e(r[o]);var s=n;a()}([])</script><script src="./static/js/2.e121100b.chunk.js"></script><script src="./static/js/main.41ac565a.chunk.js"></script>
<script type="application/javascript">self.languagePluginUrl=self.location.protocol+"//"+self.location.host+self.location.pathname+"pyodide/",self.analyze=function(l){return[l,"output\n"+l]}</script><script type="application/javascript" src="pyodide/pyodide.js"></script><script>!function(e){function r(r){for(var n,l,i=r[0],p=r[1],f=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);for(a&&a(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var p=t[i];0!==o[p]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="./";var i=this["webpackJsonplive-py"]=this["webpackJsonplive-py"]||[],p=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var a=p;t()}([])</script><script src="./static/js/2.5d856c2c.chunk.js"></script><script src="./static/js/main.25c09a53.chunk.js"></script>
{% endif %}
2 changes: 1 addition & 1 deletion docs/_includes/head-scripts.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{% if page.is_react %}
<link href="./static/css/main.bcbc7105.chunk.css" rel="stylesheet">
<link href="./static/css/main.577661cd.chunk.css" rel="stylesheet">
{% endif %}
29 changes: 18 additions & 11 deletions docs/demo/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
{
"main.css": "./static/css/main.bcbc7105.chunk.css",
"main.js": "./static/js/main.41ac565a.chunk.js",
"main.js.map": "./static/js/main.41ac565a.chunk.js.map",
"runtime~main.js": "./static/js/runtime~main.d653cc00.js",
"runtime~main.js.map": "./static/js/runtime~main.d653cc00.js.map",
"static/js/2.e121100b.chunk.js": "./static/js/2.e121100b.chunk.js",
"static/js/2.e121100b.chunk.js.map": "./static/js/2.e121100b.chunk.js.map",
"index.html": "./index.html",
"precache-manifest.994ae3fed9e3c357a21dc543c81dbcc2.js": "./precache-manifest.994ae3fed9e3c357a21dc543c81dbcc2.js",
"service-worker.js": "./service-worker.js",
"static/css/main.bcbc7105.chunk.css.map": "./static/css/main.bcbc7105.chunk.css.map"
"files": {
"main.css": "./static/css/main.577661cd.chunk.css",
"main.js": "./static/js/main.25c09a53.chunk.js",
"main.js.map": "./static/js/main.25c09a53.chunk.js.map",
"runtime-main.js": "./static/js/runtime-main.b9c10aea.js",
"runtime-main.js.map": "./static/js/runtime-main.b9c10aea.js.map",
"static/js/2.5d856c2c.chunk.js": "./static/js/2.5d856c2c.chunk.js",
"static/js/2.5d856c2c.chunk.js.map": "./static/js/2.5d856c2c.chunk.js.map",
"index.html": "./index.html",
"static/css/main.577661cd.chunk.css.map": "./static/css/main.577661cd.chunk.css.map",
"static/js/2.5d856c2c.chunk.js.LICENSE.txt": "./static/js/2.5d856c2c.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.b9c10aea.js",
"static/js/2.5d856c2c.chunk.js",
"static/css/main.577661cd.chunk.css",
"static/js/main.25c09a53.chunk.js"
]
}
22 changes: 0 additions & 22 deletions docs/demo/precache-manifest.994ae3fed9e3c357a21dc543c81dbcc2.js

This file was deleted.

Binary file added docs/demo/pyodide/distutils.data
Binary file not shown.
1 change: 1 addition & 0 deletions docs/demo/pyodide/distutils.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/demo/pyodide/packages.json

Large diffs are not rendered by default.

Binary file modified docs/demo/pyodide/pyodide.asm.data
Binary file not shown.
10 changes: 0 additions & 10 deletions docs/demo/pyodide/pyodide.asm.data.js

This file was deleted.

31 changes: 17 additions & 14 deletions docs/demo/pyodide/pyodide.asm.js

Large diffs are not rendered by default.

Binary file modified docs/demo/pyodide/pyodide.asm.wasm
100644 → 100755
Binary file not shown.
Loading

0 comments on commit 3d1fee7

Please sign in to comment.