From 547389536fa11fcd27657b89572a5b84aead8659 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Sat, 20 Apr 2024 08:12:59 -0400 Subject: [PATCH] docs(tutorial): deploy jupyterlite --- .github/workflows/ibis-docs-main.yml | 3 + .github/workflows/ibis-docs-pr.yml | 3 + .gitignore | 6 + docs/ibis-wasm-wheels_cors_config.json | 8 + docs/index.qmd | 35 ++ docs/jupyter_lite_config.json | 8 + docs/styles.css | 7 + justfile | 46 +- poetry.lock | 824 +++++++++++++++++++++++-- pyproject.toml | 5 +- requirements-dev.txt | 49 +- 11 files changed, 936 insertions(+), 58 deletions(-) create mode 100644 docs/ibis-wasm-wheels_cors_config.json create mode 100644 docs/jupyter_lite_config.json diff --git a/.github/workflows/ibis-docs-main.yml b/.github/workflows/ibis-docs-main.yml index 8b139a2dfa71c..0f1c5b6fccdb4 100644 --- a/.github/workflows/ibis-docs-main.yml +++ b/.github/workflows/ibis-docs-main.yml @@ -45,6 +45,9 @@ jobs: - name: build docs run: nix develop --ignore-environment --keep HOME -c just docs-render + - name: build jupyterlite + run: nix develop --ignore-environment --keep HOME -c just build-jupyterlite + - name: check that all frozen computations were done before push run: git diff --exit-code --stat diff --git a/.github/workflows/ibis-docs-pr.yml b/.github/workflows/ibis-docs-pr.yml index 9a862b4f56e7f..887a2c784a268 100644 --- a/.github/workflows/ibis-docs-pr.yml +++ b/.github/workflows/ibis-docs-pr.yml @@ -47,6 +47,9 @@ jobs: - name: build docs run: nix develop --ignore-environment --keep HOME -c just docs-render + - name: build jupyterlite + run: nix develop --ignore-environment --keep HOME -c just build-jupyterlite + - name: check that all frozen computations were done before push run: git diff --exit-code --stat diff --git a/.gitignore b/.gitignore index 5db07574ef9f0..bc8c637660765 100644 --- a/.gitignore +++ b/.gitignore @@ -147,3 +147,9 @@ docs/**/.jupyter_cache # quarto generated files docs/posts-listing.json docs/posts.feed-full-staged +docs/**/*.html + +# jupyterlite stuff +.jupyterlite.doit.db +!content/runtime.txt +content/ diff --git a/docs/ibis-wasm-wheels_cors_config.json b/docs/ibis-wasm-wheels_cors_config.json new file mode 100644 index 0000000000000..ef1b21a28c74e --- /dev/null +++ b/docs/ibis-wasm-wheels_cors_config.json @@ -0,0 +1,8 @@ +[ + { + "origin": ["*"], + "method": ["GET"], + "responseHeader": ["Content-Type"], + "maxAgeSeconds": 3600 + } +] diff --git a/docs/index.qmd b/docs/index.qmd index 4f1688ebb1587..6f65c687a78ec 100644 --- a/docs/index.qmd +++ b/docs/index.qmd @@ -8,6 +8,7 @@ twitter-card: format: html: toc: false + page-layout: full include-in-header: text: |