Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nightly Pyodide wheel debugging #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Deploy docs 📚 to GitHub Pages 📑

on:
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12.1"

- name: Install
run: |
python -m pip install .
python -m pip install -r util/readthedocs/requirements.txt

- name: Build Emscripten wheel
uses: pypa/cibuildwheel@main
env:
CIBW_PLATFORM: pyodide

- name: Upload wheel
uses: actions/upload-artifact@v4
with:
name: wasm32_docs_wheel
path: wheelhouse/*.whl

- name: Copy wheel to built docs
run: |
mkdir -p doc/build/lite/pypi
cp wheelhouse/*.whl doc/build/lite/pypi/

- name: Build docs
run: sphinx-build -b html doc/source doc/build/html

- name: Sanity check docs
run: tree doc/build

- name: Upload docs
uses: actions/upload-artifact@v4
with:
name: documentation
path: doc/build/html

- name: Deploy docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./doc/build/html
user_name: agriyakhetarpal
user_email: "[email protected]"
2 changes: 2 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@

# -- Options for JupyterLite -------------------------------------------------

jupyterlite_silence = False

global_enable_try_examples = True
try_examples_global_button_text = "Try it in your browser!"
try_examples_global_warning_text = (
Expand Down
Loading