Drop the *Node / *Edge predicate-name suffixes #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Documentation | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/configure-pages@v6 | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.x | |
| # Build the playground wasm module (docs/playground/pkg/) before the site, | |
| # so zensical copies it into the published artifact. | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| # Only wasm-bindgen — NOT wasm-opt. wasm-bindgen 0.2.114 emits a | |
| # reference-types externref table; the binaryen/wasm-opt from apt mangles | |
| # it, yielding a module that fails at load with | |
| # "WebAssembly.Table.grow(): failed to grow table". build-wasm.sh skips | |
| # wasm-opt when it isn't on PATH, so leaving it uninstalled ships the | |
| # working (unoptimised) module. Re-add a recent binaryen here only if it's | |
| # verified to handle reference-types. | |
| - name: Install wasm-bindgen | |
| run: cargo install wasm-bindgen-cli --version 0.2.114 --locked | |
| - name: Build playground wasm | |
| run: ./shell/build-wasm.sh | |
| - run: pip install zensical | |
| - run: zensical build --clean | |
| - uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: site | |
| - uses: actions/deploy-pages@v5 | |
| id: deployment |