Home / Companies / Algolia / Blog / Post Details
Content Deep Dive

Algolia DocSearch + Astro Starlight

Blog post from Algolia

Post Details
Company
Date Published
Author
Jaden Baptista
Word Count
543
Language
English
Hacker News Points
-
Summary

Combining Astro's Starlight framework with Algolia gives a documentation site the best of both worlds, offering easy content creation and search functionality. Astro is a full-stack JS framework for building content-focused websites, while Starlight is an Astro theme specifically focused on documentation, providing styling, internationalization, and support for popular content formats like Markdown and MDX. Algolia DocSearch is a search service that crawls the site as a cron job and provides an embeddable ReactJS widget to manage search results. The DocSearch plugin can be applied to a Starlight project by installing `@astrojs/starlight-docsearch` and setting up the necessary variables, such as App ID, API Key, and index name, which can be found on the Algolia dashboard under the "Settings" tab.