AR.IO Documentation is a Next.js site built with Fumadocs that hosts the product and developer documentation for the AR.IO network and tooling. It contains authored guides, API references, and autogenerated content sourced from scripts in this repository.
Visit docs.ar.io for the published version of these docs.
Run the development server:
npm run dev
# or
pnpm dev
# or
yarn devOpen http://localhost:3000 with your browser to preview the site locally.
- lib/source.ts: Content source adapter—- loader()exposes the headless content interface.
- lib/layout.shared.tsx: Shared layout options reused across routes.
- app/(home): Landing page and supporting marketing pages.
- app/docs: Documentation layout and pages.
- app/api/search/route.ts: Route handler powering on-site search.
- Install dependencies with your preferred package manager (npm install,pnpm install, oryarn install).
- Run the local development server using the commands above and confirm changes at http://localhost:3000.
- When ready for production, build the static output with npm run build(or the equivalentpnpm/yarncommand).
Automated content is produced through the scripts in the scripts/ directory:
- generate-api-docs.ts: Generates OpenAPI-driven API documentation pages.
- generate-sdk-docs.ts: Builds SDK reference docs from source annotations.
- generate-llm-text.jsand- generate-sdk-llm-texts.js: Create AI-assisted text snippets for docs and SDK references.
- deploy-to-arweave.js: Publishes the built site to Arweave storage.
- check-links.mjs: Validates internal and external links within the generated site.
Refer to scripts/README-llm-generation.md for additional details on generating LLM-assisted content.