Writing these docs
Where the pages live, and how to preview and publish them.
The docs are apps/docs, a Next.js app built with Fumadocs and exported as static files.
Pages
- Pages are MDX files under
apps/docs/content/docs. The file path is the URL:self-hosting/docker.mdxis/self-hosting/docker. There is no/docsprefix. - Every page sets
title(and usuallydescription) in its frontmatter; the body starts at##. meta.jsonin a folder orders its pages and names the sidebar group. Never hand-write a route list.- Link between pages with root paths, such as
/self-hosting/configuration.
Preview
pnpm --filter @montara-mail/docs dev # http://localhost:3001
pnpm --filter @montara-mail/docs typecheck
pnpm --filter @montara-mail/docs build # static site in apps/docs/outSearch, llms.txt and llms-full.txt are generated at build time.
Publish
The Release workflow builds the site and deploys out/ to Cloudflare Workers as static assets (apps/docs/wrangler.jsonc), at docs.montaramail.web.id. Run the workflow by hand to publish a docs change without a release.