Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ enough information so someone can reproduce your tests.
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] I have made corresponding changes to the documentation (e.g. add new modules to docs/docstrings/)
- [ ] My changes generate no new warnings
- [ ] Any dependent changes have been merged and published in downstream modules
- [ ] New check tests, if applicable, are included
34 changes: 34 additions & 0 deletions .github/workflows/docs_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Build docs"

# This workflow builds the docs to catch us when modules are moved/deleted
# and the auto-generated docstrings can't build anymore. This does not catch
# us when new modules are added.

# Run these these whenever ...
on:
pull_request: # ... a PR is opened / updated
merge_group: # ... the PR is added to the merge queue

# cancel running jobs if theres a newer push
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v5

- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install mkdocs
run: pip install mkdocs-material mkdocstrings[python]

- name: Build docs
run: mkdocs build
3 changes: 3 additions & 0 deletions docs/docstrings/initialization/grid_sizer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# grid_sizer

::: initialization.grid_sizer
3 changes: 0 additions & 3 deletions docs/docstrings/initialization/sizer.md

This file was deleted.

3 changes: 3 additions & 0 deletions docs/docstrings/initialization/subtile_grid_sizer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# subtile_grid_sizer

::: initialization.subtile_grid_sizer
3 changes: 3 additions & 0 deletions docs/docstrings/quantity/state.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# state

::: quantity.state
3 changes: 0 additions & 3 deletions docs/docstrings/top/global_config.md

This file was deleted.

5 changes: 3 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ nav:
- "constants": docstrings/top/constants.md
- "exceptions": docstrings/top/exceptions.md
- "filesystem": docstrings/top/filesystem.md
- "global_config": docstrings/top/global_config.md
- "io": docstrings/top/io.md
- "logging": docstrings/top/logging.md
- "namelist": docstrings/top/namelist.md
Expand Down Expand Up @@ -77,7 +76,8 @@ nav:
- "updater": docstrings/halo/updater.md
- initialization:
- "allocator": docstrings/initialization/allocator.md
- "sizer": docstrings/initialization/sizer.md
- "grid_sizer": docstrings/initialization/grid_sizer.md
- "subtile_grid_sizer": docstrings/initialization/subtile_grid_sizer.md
- monitor:
- "convert": docstrings/monitor/convert.md
- "netcdf_monitor": docstrings/monitor/netcdf_monitor.md
Expand All @@ -95,6 +95,7 @@ nav:
- "field_bundle": docstrings/quantity/field_bundle.md
- "metadata": docstrings/quantity/metadata.md
- "quantity": docstrings/quantity/quantity.md
- "state": docstrings/quantity/state.md
- restart:
- "_legacy_restart": docstrings/restart/_legacy_restart.md
- "_properties": docstrings/restart/_properties.md
Expand Down