Update docs about Netlify.

This commit is contained in:
Michael Droettboom 2019-05-31 16:02:51 -04:00
parent 1799e45525
commit 0ca6505261
3 changed files with 23 additions and 7 deletions

View File

@ -85,7 +85,8 @@ build/pyodide_dev.js: src/pyodide.js
build/pyodide.js: src/pyodide.js
cp $< $@
sed -i -e 's#{{DEPLOY}}#https://iodide.io/pyodide-demo/#g' $@
sed -i -e 's#{{DEPLOY}}#https://pyodide.netlify.com/#g' $@
sed -i -e "s#{{ABI}}#$(PYODIDE_PACKAGE_ABI)#g" $@
@ -102,7 +103,7 @@ build/renderedhtml.css: src/renderedhtml.less
build/webworker.js: src/webworker.js
cp $< $@
sed -i -e 's#{{DEPLOY}}#https://iodide.io/pyodide-demo/#g' $@
sed -i -e 's#{{DEPLOY}}#https://pyodide.netlify.com/#g' $@
build/webworker_dev.js: src/webworker.js
cp $< $@

View File

@ -12,9 +12,14 @@ When inside a browser, this means Python has full access to the Web APIs.
be used standalone in any context where you want to run Python inside a web
browser.**
For more information, see [the demo](https://extremely-alpha.iodide.io/notebooks/222/) and the
For more information, see [the demo](https://alpha.iodide.io/notebooks/300/) and the
[documentation](https://github.com/iodide-project/pyodide/tree/master/docs).
# Downloading pre-built versions
Pre-built versions of Pyodide are available
[here](https://github.com/iodide-project/pyodide/releases/).
# Building
Building is easiest on Linux. For other platforms, we recommend using
@ -48,9 +53,9 @@ already installed to make it easier to build Pyodide.
3. Run `make` to build.
If running ``make`` deterministically stops at one point in each subsequent try, increasing
the maximum RAM usage available to the docker container might help [This is different
from the physical RAM capacity inside the system]. Ideally, at least 3 GB of RAM
should be available to the docker container to build `pyodide` smoothly. These settings can
the maximum RAM usage available to the docker container might help [This is different
from the physical RAM capacity inside the system]. Ideally, at least 3 GB of RAM
should be available to the docker container to build `pyodide` smoothly. These settings can
be changed via Docker Preferences [See [here](https://stackoverflow.com/questions/44533319/how-to-assign-more-memory-to-docker-container)].
You can edit the files in your source checkout on your host machine, and then

View File

@ -8,7 +8,17 @@ Iodide](using_pyodide_from_iodide.md).
Include `pyodide.js` in your project.
This has a single `Promise` object which bootstraps the Python environment:
The recommended way to include Pyodide in your project is to download a release
from [here](https://github.com/iodide-project/pyodide/releases) and include the
contents in your distribution, and import the `pyodide.js` file there from a
`<script>` tag.
For prototyping purposes, you may also use the following CDN URL, though doing
so is not recommended, since it isn't versioned:
https://pyodide.netlify.com/pyodide.js
This file has a single `Promise` object which bootstraps the Python environment:
`languagePluginLoader`. Since this must happen asynchronously, it is a
`Promise`, which you must call `then` on to complete initialization. When the
promise resolves, pyodide will have installed a namespace in global scope: