Skip to content

Index API parameter documentation in search - #1456

Open
thedisciple wants to merge 1 commit into
microbit-foundation:mainfrom
thedisciple:fix/601-index-parameter-docs
Open

thedisciple wants to merge 1 commit into
microbit-foundation:mainfrom
thedisciple:fix/601-index-parameter-docs

Conversation

@thedisciple

Copy link
Copy Markdown

What

  • Index API parameter names and detailed docstring content.
  • Give those matches a lower weight than API ids, names, and summaries.
  • Show the matching detailed-doc excerpt in search results.
  • Add tests for parameter-name/detail matching and ranking.

Fixes #601

Testing

  • npm run ci
    • typecheck
    • lint
    • 465 unit tests
    • i18n tidy check
    • production build

The end-to-end suite was not run locally because this environment could not download the Playwright Chromium binary. The repository's full npm run ci command completed successfully.

AI assistance

This change was implemented with assistance from OpenAI Codex (GPT-5-based model). The implementation and tests were reviewed and run before submission.

Index detailed API docs and parameter names at lower priority so users can find functions by parameter help without degrading exact-name ranking.

AI-assisted with OpenAI Codex (GPT-5-based model); implementation and tests were reviewed before submission.
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.

[Search] Index parameter documentation

1 participant