Skip to content
DavideCarvalhoPublic

About

Agora — libraries for the AdonisJS ecosystem. Central docs hub (Fumadocs).

Resources

Stars

14 stars

Watchers

0 watching

Forks

Repository files navigation

Agora

Deploy Docs

A family of production-grade libraries for AdonisJS. Each ships on its own, but they compose: they share context, emit to one diagnostics bus and surface in one observability console. This repository is the documentation site that brings them together.

Docs: https://davidecarvalho.github.io/agora/

The libraries

Library Package Version Source
Context @adonis-agora/context npm repo
Diagnostics @adonis-agora/diagnostics npm repo
Resilience @adonis-agora/resilience npm repo
Durable @adonis-agora/durable npm repo
Telescope @adonis-agora/telescope npm repo
Authz @adonis-agora/authz npm repo
Collaboration @adonis-agora/collaboration npm repo
Media @adonis-agora/media npm repo
Filter @adonis-agora/filter npm repo
Payments @adonis-agora/payments npm repo
Agent @adonis-agora/agent npm repo
AuthKit @adonis-agora/authkit-server npm repo
Flags @adonis-agora/flags npm repo
Sail @adonis-agora/sail npm repo
Config @adonis-agora/config npm repo
Crypto @adonis-agora/crypto npm repo

Running Agora in production? Tell us about it.

The site

Built with Next.js and Fumadocs, exported statically to GitHub Pages. Each library keeps its docs in its own repository (docs/); scripts/sync-docs.mjs pulls them into content/docs/<slug>/ before every build, and the site redeploys on a schedule and on a lib-docs-updated dispatch from a library repo.

pnpm install
pnpm dev            # syncs the docs from your local library checkouts, then starts Next.js
pnpm build          # syncs from GitHub, checks links, exports to out/

Docs versions

Each library's latest docs (its default branch, ref in scripts/docs-sources.mjs) are served at /docs/<slug>/.... Older majors are pinned to a git tag and served at /docs/<slug>/<id>/..., with a version dropdown in the sidebar and an "older version" banner on every page. Search, llms.txt and llms-full.txt cover only the latest docs.

When a library ships a new major (say durable 2.0), in its entry in scripts/docs-sources.mjs:

  1. Prepend the previous major to versions, pinned to its last release tag of the main package: { id: 'v1', label: '1.x', ref: '@adonis-agora/durable@1.12.3' }. Add path: '...' only if the docs lived somewhere else in the repo at that tag.
  2. Bump latestLabel to '2.x'.

Then run pnpm sync:docs durable && pnpm check:links (or pnpm build) to check it. Links inside an older version stay inside it; links to other libraries go to their latest docs. A library with no older majors simply has no versions and shows no dropdown.

About

Agora — libraries for the AdonisJS ecosystem. Central docs hub (Fumadocs).

Resources

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages