Skip to content

DOC: organise API reference - #920

Merged
lucascolley merged 1 commit into
data-apis:mainfrom
Johnkothapalli:docs/organise-api-reference
Aug 14, 2026
Merged

DOC: organise API reference#920
lucascolley merged 1 commit into
data-apis:mainfrom
Johnkothapalli:docs/organise-api-reference

Conversation

@Johnkothapalli

Copy link
Copy Markdown
Contributor

Summary

Organises the flat assorted API autosummary into categories aligned with the Python Array API standard, while keeping a single page and preserving the generated reference URLs. All 31 existing public entries remain listed exactly once.

Closes #322.

The open #910 adds nanmean to this file. If it lands first, I will rebase and place nanmean under Statistical functions.

Validation

  • pixi run docs (Sphinx with -E -W)
  • pixi run lint
  • coverage check confirming 31 API entries, each listed exactly once

AI assistance: Codex helped analyze the grouping and prepare the change; the resulting diff was verified with the project checks above.

@lucascolley lucascolley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Johnkothapalli, this seems smoother than I anticipated!

Another opportunity this presents for a follow-up is to reorganise the implementation files accordingly. I'll take a look at that soon.

Comment thread docs/api-assorted.md
:toctree: generated

angle
apply_where

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apply_where is the only one where the category doesn't feel like a great fit to me, but I think it is still arguably the best place for it, so happy to leave it here.

Comment thread docs/api-assorted.md
Comment on lines 1 to +3
# Assorted functions

## Creation functions

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now that we have this, I think it would be nice to have a multi-level TOC which splits each category into a separate sub-page. I can take a look at doing that in a follow-up.

@lucascolley lucascolley added this to the 0.11.2 milestone Aug 14, 2026
@lucascolley lucascolley added the documentation Improvements or additions to documentation label Aug 14, 2026
@lucascolley
lucascolley enabled auto-merge (squash) August 14, 2026 16:23
@lucascolley
lucascolley merged commit 4fb5f6d into data-apis:main Aug 14, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOC: organise API reference

2 participants