Skip to content

Commit

Permalink
Change to mkdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceyron committed Jun 21, 2024
1 parent 1476cd3 commit e782342
Show file tree
Hide file tree
Showing 16 changed files with 862 additions and 304 deletions.
65 changes: 24 additions & 41 deletions .github/workflows/build_docs.yml
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
48 changes: 0 additions & 48 deletions .github/workflows/deploy_docs.yml

This file was deleted.

20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

5 changes: 5 additions & 0 deletions docs/api/stepper/base_stepper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
:::exponax.BaseStepper
options:
members:
- __init__
- __call__
6 changes: 6 additions & 0 deletions docs/api/stepper/normalized/linear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

::: exponax.normalized.NormalizedLinearStepper
options:
members:
- __init__
- __call__
11 changes: 11 additions & 0 deletions docs/api/stepper/physical/linear/advection.md
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__
49 changes: 0 additions & 49 deletions docs/conf.py

This file was deleted.

104 changes: 0 additions & 104 deletions docs/design_decisions.md

This file was deleted.

Loading

0 comments on commit e782342

Please sign in to comment.