Example docs site using @farming-labs/docs with @farming-labs/theme.
pnpm devIf you do nothing, the example uses the framework default: built-in simple search.
Set DOCS_SEARCH_PROVIDER only when you want to switch to mcp, typesense, or algolia.
cp .env.local.example .env.localDOCS_SEARCH_PROVIDER=typesenseTYPESENSE_URLto your Typesense host URLTYPESENSE_API_KEYto your Typesense key
Optional:
TYPESENSE_COLLECTIONto change the collection nameTYPESENSE_SEARCH_API_KEY/TYPESENSE_ADMIN_API_KEYif you use separate keysTYPESENSE_MODE=hybridplusTYPESENSE_OLLAMA_MODELfor hybrid search
If you want to sync the index manually instead of waiting for the first request:
pnpm exec docs search sync --typesense --config docs.config.tsxDOCS_SEARCH_PROVIDER=algoliaALGOLIA_APP_IDto your Algolia app idALGOLIA_SEARCH_API_KEYto your Algolia search key
Optional:
ALGOLIA_INDEX_NAMEto change the index nameALGOLIA_ADMIN_API_KEYif you want automatic/manual index sync
Manual sync:
pnpm exec docs search sync --algolia --config docs.config.tsxIf you want to switch to the MCP search example:
DOCS_SEARCH_PROVIDER=mcp pnpm devTo verify the active backend, query the docs API directly:
curl "http://127.0.0.1:3000/api/docs?query=session"Create an MDX file under app/docs/:
app/docs/your-page/page.mdx
---
title: "Your Title"
description: "Page description"
icon: "rocket"
---
# Your Title
Content here.No other config needed — the framework handles layout, routing, and metadata from docs.config.ts.
See docs.config.ts for theme, metadata, icons, and page action configuration.