-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
862 additions
and
304 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,34 @@ | ||
name: Build documentation | ||
|
||
on: | ||
# only run on PRs, not on pushes to main | ||
# (this is handled by deploy_docs.yml) | ||
pull_request: | ||
|
||
workflow_call: | ||
inputs: | ||
artifact_name: | ||
description: "Name of the artifact to upload" | ||
required: false | ||
type: string | ||
|
||
push: | ||
branches: | ||
- main | ||
permissions: | ||
contents: write | ||
jobs: | ||
test-docs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install system requirements | ||
- uses: actions/checkout@v4 | ||
- name: Configure Git Credentials | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y pandoc | ||
- name: Setup Python environment | ||
uses: actions/setup-python@v4 | ||
git config user.name github-actions[bot] | ||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install doc requirements | ||
run: | | ||
pip install jax[cpu] | ||
pip install . | ||
pip install -r docs/requirements.txt | ||
python-version: 3.x | ||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | ||
|
||
- name: Build docs | ||
- name: Install dependencies | ||
run: | | ||
cd docs | ||
export SPHINXOPTS="-W" # treat warnings as errors | ||
make html | ||
python -m pip install --upgrade pip | ||
python -m pip install . | ||
python -m pip install -r docs/requirements.txt | ||
- name: Upload HTML files | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ inputs.artifact_name }} | ||
- uses: actions/cache@v4 | ||
with: | ||
name: ${{ inputs.artifact_name }} | ||
path: docs/build/html | ||
if-no-files-found: error | ||
key: mkdocs-material-${{ env.cache_id }} | ||
path: .cache | ||
restore-keys: | | ||
mkdocs-material- | ||
- run: pip install mkdocs-material | ||
- run: mkdocs gh-deploy --force |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
:::exponax.BaseStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
::: exponax.normalized.NormalizedLinearStepper | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Advection | ||
|
||
$$ \frac{\partial u}{\partial t} + c \frac{\partial u}{\partial x} = 0 $$ | ||
|
||
|
||
|
||
::: exponax.stepper.Advection | ||
options: | ||
members: | ||
- __init__ | ||
- __call__ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.