Skip to content

API Reference Documentation #532

Closed

Description

@psschwei

Description:
Auto-generated and curated API reference documentation for all new modules.

Acceptance Criteria:

  • API docs for mellea/eval/ module
  • API docs for mellea/archetypes/ module
  • API docs for mellea/stdlib/requirements/catalog/
  • Integration with existing documentation system
  • Examples in docstrings
  • Type annotations for all public APIs
  • Cross-references between related APIs

Activity

  1. self-assigned this
    on Mar 6, 2026
  2. planetf1 commented on Mar 6, 2026

    @planetf1
    Contributor

    Looking at this

  3. planetf1 commented on Mar 10, 2026

    @planetf1
    Contributor

    Is this a dup of #484 ? (or vice versa. will continue here as richer in content)

  4. planetf1 commented on Mar 10, 2026

    @planetf1
    Contributor

    In response to the checklist

    • the first three items do not exist, nor have they (there is cli/eval and a unit_test_eval.py file - but no sign of others) - please clarify
    • integration is a given, the linkage primarily being through the docs.mellea.ai url. We have a CI action triggered by v* tags or manually. this creates a PR and writes files back to this repo. We'll keep the same mechanism for the immediate release
    • There are many improvements we can make in docstrings including standardization of parameters
    • the current tooling doesn't do cross-references - look at simple post-processing to generate

    After the next release we may want to look at

    • better tooling/format that can do better parsing/formatting including of xrefs etc
    • publishing of docs to github pages or similar (rather than the target being checked in
    • versioning (alongside core docs)
    • a proper staging area and/or PR builds for early verification/review
  5. psschwei commented on Mar 10, 2026

    @psschwei
    ContributorAuthor

    Is this a dup of #484 ? (or vice versa.
    the first three items do not exist, nor have they (there is cli/eval and a unit_test_eval.py file - but no sign of others) - please clarify

    in theory, this issue was to ensure we add API docs for new items introduced in #441 (that's why the references to things that don't yet exist), whereas #484 was to cover getting the current API docs on the website. but we can combine / adapt however makes the most sense

  6. planetf1 commented on Mar 10, 2026

    @planetf1
    Contributor

    Plan:

    • Docstring quality — fix descriptions users read for every function and class
    • API completeness — audit and surface any public APIs missing from the docs
    • Source links — fix "View Source" links pointing into a temp dir instead of GitHub
    • Cross-references — make backtick mentions of types/functions clickable links
    • Module overviews — add preamble text so users understand a module before scanning its API
    • Reliable CI — uv migration + wheel-build fix so docs regenerate correctly on every release
    • Quality gates — automated validation in CI to prevent regressions shipping silently

    I'm focussing on making this automated (as long as the source files ie docstrings are good) so will not attempt to incorporate anything from #441. Once merged we will run, and verify.

  7. planetf1 commented on Mar 10, 2026

    @planetf1
    Contributor

    Realising that mdx and python are not a great match. However, will continue for this release. Adding some additional parsing in the pipeline to fix up examples, braces etc.

  8. planetf1 commented on Mar 10, 2026

    @planetf1
    Contributor

    The API generation is now updated to address the issues above & fix formatting errors. The commands are also integrated into uv ie uv run poe apidocs (& commands for clean/validate). A API docs landing page is generated. There are NO manual changes.

    Coverage is complete - every public class and function (320)

    • Publishing.

      Unlike the main docs which are 'static' and authored as part of a dev process (currently), the API docs are fully generated.

      Ideally source files would not be checked in. Maybe published to github pages. But this would need mintlify changes

      One option is -- in the short term -- to manually update (run the command) and check in

  9. planetf1 commented on Mar 10, 2026

    @planetf1
    Contributor

    PR #611 is open for the pipeline

  10. added
    documentation
    on Mar 10, 2026
  11. added 2 commits that reference this issue on Mar 12, 2026
    a077f87
    d8f82d5
  12. added a commit that references this issue on Mar 13, 2026
    3d6755d
  13. added a commit that references this issue on May 27, 2026
    3f9f3b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions