Skip to content

Track RAVEN develop3 and render NumPy-style API docs#2

Merged
edkerk merged 3 commits into
mainfrom
fix/matlab-docstring-style
Jun 12, 2026
Merged

Track RAVEN develop3 and render NumPy-style API docs#2
edkerk merged 3 commits into
mainfrom
fix/matlab-docstring-style

Conversation

@edkerk

@edkerk edkerk commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Switches the docs site to track RAVEN's develop3 branch and renders the
MATLAB API as structured tables.

Changes

  • Track develop3.gitmodules now tracks the RAVEN submodule on
    develop3, whose modular layout (reconstruction, manipulation,
    analysis, gapfilling, …) mirrors raven-python's package structure, so the
    two implementations line up by category in the API reference.
  • Generator (scripts/gen_api_pages.py) — organises the API reference by
    develop3's modular categories.
  • mkdocs.yml — points the MATLAB mkdocstrings handler at the modular
    directories and sets docstring_style: numpy so NumPy-style help renders as
    argument/return tables.

Activation

The NumPy-style function help that produces the tables lands in develop3 via
SysBioChalmers/RAVEN#616.
Once that merges, git submodule update --remote RAVEN (the submodule now
tracks develop3) pulls the reformatted docstrings and the tables appear.
Verified locally against the #616 branch: 18 modular API pages, NumPy docstrings
render as tables, mkdocs build --strict passes with no warnings.

Automated submodule updates

  • Also sets the raven-python submodule to track develop (hanpo-GEM stays on main).
  • Adds .github/workflows/update-submodules.yml: a scheduled GitHub Action that
    runs daily at 04:00 UTC (plus a manual Run workflow button via
    workflow_dispatch). It pulls each submodule to the tip of its tracked branch
    and commits the pointer bump only when something changed. Uses the default
    GITHUB_TOKEN (no secrets); the resulting push to main triggers the Read the
    Docs rebuild automatically.
  • Note: the first run will bump RAVEN/raven-python from their current main pins
    to the dev-branch tips — this is intended.

edkerk added 2 commits June 10, 2026 01:37
RAVEN's function help is being reformatted to NumPy-style docstrings, which
mkdocstrings-matlab renders as structured argument/return tables. Set the
matlab handler's docstring_style to numpy so the help is parsed accordingly.
RAVEN's develop3 branch reorganises the toolbox into modular directories
(reconstruction, manipulation, analysis, gapfilling, ...) that mirror
raven-python's package layout, so the two line up by category.

- .gitmodules: track the RAVEN submodule on develop3.
- gen_api_pages.py: organise the API reference by develop3's modular
  categories.
- mkdocs.yml: point the MATLAB mkdocstrings handler at the modular
  directories.

The NumPy-style function help that renders these as argument/return tables
lands in develop3 via SysBioChalmers/RAVEN#616; once merged, updating the
submodule (it now tracks develop3) brings the reformatted docstrings in.
@edkerk edkerk changed the title Use numpy docstring style for the MATLAB API handler Track RAVEN develop3 and render NumPy-style API docs Jun 10, 2026
Track develop3 (RAVEN) and develop (raven-python) in .gitmodules and add a scheduled workflow that bumps the submodule pointers to the tip of their tracked branches once a day, with manual workflow_dispatch support.
@edkerk edkerk force-pushed the fix/matlab-docstring-style branch from a2f4cd4 to 5c21e10 Compare June 12, 2026 08:10
@edkerk edkerk marked this pull request as ready for review June 12, 2026 08:10
@edkerk edkerk merged commit 4e21a8e into main Jun 12, 2026
@edkerk edkerk deleted the fix/matlab-docstring-style branch June 12, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant