Skip to content

Reformat function help blocks to NumPy-style docstrings#616

Merged
edkerk merged 1 commit into
develop3from
fix/numpy-style-help
Jun 10, 2026
Merged

Reformat function help blocks to NumPy-style docstrings#616
edkerk merged 1 commit into
develop3from
fix/numpy-style-help

Conversation

@edkerk

@edkerk edkerk commented Jun 9, 2026

Copy link
Copy Markdown
Member

Main improvements in this PR:

  • documentation:
    • Reformatted the leading help comment block of every documented function (175 functions across the analysis, annotation, biomass, comparison, conditions, conversion, curation, gapfilling, io, localization, manipulation, omics, queries, reconstruction, solver, tasks, utils and visualization modules) to NumPy-style docstrings: a one-line summary, followed by Parameters, Returns, Examples and (where relevant) Notes / See also sections, with typed arguments (e.g. model : struct, verbose : logical, optional).
    • This makes the function help render as structured argument / return tables in the documentation site (via mkdocstrings-matlab), while remaining valid, readable MATLAB help text. A few inconsistent H1 lines (copy-paste leftovers) were corrected to match the file name.
    • Only comment lines are changed — function signatures and code are untouched (verified: 0 non-comment lines modified across the entire diff).

Instructions on merging this PR:

  • This PR targets the develop3 branch, and will be resolved with a squash-merge.
  • This PR has main as target branch, and will be resolved as descriped here.

@edkerk edkerk changed the base branch from develop to develop3 June 10, 2026 04:46
Rewrite the leading help comment block of every documented function (across
the analysis, annotation, biomass, comparison, conditions, conversion,
curation, gapfilling, io, localization, manipulation, omics, queries,
reconstruction, solver, tasks, utils and visualization modules) to
NumPy-style docstrings: a one-line summary, followed by Parameters, Returns,
Examples and (where relevant) Notes / See also sections, with typed arguments.

This renders as structured argument/return tables in the documentation site
(via mkdocstrings-matlab) while remaining valid, readable MATLAB help text.
Only comment lines are changed; function signatures and code are untouched.
@edkerk edkerk force-pushed the fix/numpy-style-help branch from d915c40 to 5d959db Compare June 10, 2026 05:06
edkerk added a commit to edkerk/raven-docs that referenced this pull request Jun 10, 2026
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 marked this pull request as ready for review June 10, 2026 07:39
@edkerk edkerk merged commit fc54a95 into develop3 Jun 10, 2026
1 check failed
@edkerk edkerk deleted the fix/numpy-style-help branch June 10, 2026 07:39
edkerk added a commit to edkerk/raven-docs that referenced this pull request Jun 12, 2026
* Use numpy docstring style for the MATLAB API handler

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.

* Track RAVEN develop3 and document its modular structure

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.

* Add daily submodule-update GitHub Action

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.
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