Skip to content

Commit

Permalink
Start automatic API documentation generation
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-g committed Feb 11, 2024
1 parent 270b8fd commit fbaf8d0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
- name: Install Python dependencies
run: |
pip install -r requirements.txt
- name: Clone G-ADOPT for API documentation
uses: actions/checkout@v4
with:
repository: g-adopt/g-adopt
path: g-adopt
- name: Build site
run: |
mkdocs build --clean
Expand Down
7 changes: 7 additions & 0 deletions docs/documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
::: gadopt.approximations

::: gadopt.energy_solver

::: gadopt.stokes_integrators

::: gadopt.time_stepper
10 changes: 10 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ theme:
name: material
icon:
repo: fontawesome/brands/github
plugins:
- mkdocstrings:
handlers:
python:
paths: [g-adopt]
options:
show_root_heading: true
show_root_full_path: false
docstring_style: google
merge_init_into_class: true
nav:
- Home: index.md
- Install: install.md
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mkdocs~=1.5.3
mkdocs-material~=9.5.8
mkdocstrings[python]~=0.24.0

0 comments on commit fbaf8d0

Please sign in to comment.