Skip to content

v2.2.2 - Implement "Ask AI" in docs, link component props and source code

Choose a tag to compare

@nishkohli96 nishkohli96 released this 19 Sep 20:46
· 7 commits to main since this release
de20c9d

Released - 20 September, 2026

✨ Enhancements

  • Added Ask AI: a RAG-powered chat assistant on the docs site. Answers are grounded in the component library's own docs — props tables, usage guides, JSDocs — embedded with OpenAI and retrieved from a Pinecone vector index, with lexical rescue for exact component/prop-name matches and per-IP rate limiting on the answer endpoint.

📖 Docs

  • Each prop in a component's API table is now individually linkable (#prop-<name>) — hover a row to reveal a permalink, shareable and stable across doc versions.
  • Added a Source Code section to every component's doc page, linking straight to its implementation on GitHub — pinned to the exact tag/branch that page's content was built from.
  • Fixed inline <code> spans (e.g. useState) not getting the docs site's code styling in a few places outside the main article content — now applied via a single global rule instead of a per-page class, so it can't be missed again.
  • Algolia search results refinement in DocSearch component using transformItems: dropped duplicate rows for the same page (a page's base hit and its own anchor hit were showing up as two separate results) and stripped the redundant | MUI Components suffix from every result title.
  • Added an algolia-reindex GitHub Action that triggers the Algolia Crawler on every push to main, so the search index picks up new/changed docs without waiting for its monthly schedule.