Skip to content

About

Amaru Website

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Amaru website

The website and documentation portal of the Amaru ecosystem: a small landing page at / and the documentation for Amaru Light and Amaru at /docs.

Built with Next.js (App Router), Fumadocs and Tailwind CSS v4, using the default Fumadocs UI.

Requirements

  • Node.js 20.9 or newer
  • pnpm (the version is pinned in package.json under packageManager)

Run locally

pnpm install
pnpm dev          # http://localhost:3000

Scripts

Script What it does
pnpm dev Start the development server.
pnpm build Static export to out/. Compiles every MDX page and fails on invalid MDX or frontmatter.
pnpm preview Serve out/ locally (runs serve through pnpm dlx).
pnpm lint ESLint (eslint-config-next).
pnpm typecheck Generate route types and run tsc --noEmit.
pnpm validate:links Check every internal link and #anchor in content/docs.
pnpm validate:content Check page conventions: title and description lengths, uniqueness, hubs, meta.json lists, ## Next steps, headings.
pnpm check All of the above: lint, typecheck, both validations and the build.

Environment

Variable Default Purpose
NEXT_PUBLIC_SITE_URL http://localhost:3000 Public site URL, used for metadataBase, canonical URLs, Open Graph, sitemap.xml and robots.txt. Its path, if any, is the Next.js basePath. Read at build time.

See .env.example.

Routes

Route Content
/ Landing page (app/(home))
/about Why Amaru, the name and the projects' history (app/(home)/about)
/docs Documentation landing page
/design-system/foundations Design tokens reference (not indexed)
/docs/overview/... Ecosystem overview
/docs/amaru-light/... Amaru Light documentation
/docs/amaru/... Amaru documentation
/api/search Search index (Fumadocs built-in search)
/og/docs/.../image.png Generated Open Graph images
/llms.txt, /llms-full.txt Index and full text of the docs for LLMs and agents
/docs/....md Plain Markdown of one page (rewritten to /llms.mdx/...)
/sitemap.xml, /robots.txt SEO

Project structure

app/
  (home)/            landing page and its layout
  docs/              docs layout and the [[...slug]] page
  api/search/        search endpoint
  og/docs/           Open Graph images
  llms.txt/ llms-full.txt/ llms.mdx/   Markdown for LLMs and agents
  layout.tsx         root layout, RootProvider, site metadata
  sitemap.ts robots.ts
components/mdx.tsx   MDX components available in every page
content/docs/        documentation content (MDX + meta.json)
lib/
  site.ts            site URL, names, product registry
  source.ts          content collection and Fumadocs loader
  layout.shared.tsx  header and navigation shared by all layouts
scripts/
  validate-links.mts    internal link checker
  validate-content.mts  page convention checker
docs/                maintainer notes, not published: writing rules, templates, sources and hand-offs
.agents/skills/      documentation skills (.claude/skills/ links to them)

Writing documentation

See CONTRIBUTING.md and the rules in docs/writing/. Where each page's facts come from, and the product documentation issues found while writing them, are in docs/sources-and-handoffs.md. Agents: see AGENTS.md.

Deployment

GitHub Pages, at https://amaru-oss.github.io (repository amaru-oss/amaru-oss.github.io). The site is a Next.js static export (output: 'export'): .github/workflows/deploy.yml runs pnpm check on every push to main and publishes out/. In the repository settings, Pages → Source must be GitHub Actions. Search uses a static index (/api/search, built at build time) queried in the browser; no external search service is needed. The .md files linked from /llms.txt are copied to out/docs/ by scripts/export-llms.mts.

About

Amaru Website

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages