Source of the API3 documentation at https://docs.api3.org, built with VitePress. Content is Markdown under docs/, one directory per section, each with its own sidebar.js. Sections are registered in docs/.vitepress/config.js. CONTRIBUTING.md is the full contributor guide.
pnpm install
pnpm docs:dev
pnpm format
pnpm lint
pnpm docs:buildpnpm format formats the whole project with Prettier. Never hand-format. pnpm docs:build regenerates docs/public/llms.txt and llms-full.txt before building.
Link validation, the same check CI runs:
pnpm docs:build
pnpm docs:serve &
node ./libs/link-validator.js http://localhost:8082 ./docs/.vitepress/dist/- Every page listed in a sidebar declares
titleandpageHeaderin its frontmatter and starts its body with<PageHeader/>. A missing<PageHeader/>fails the build. - A new page goes into the section's
sidebar.js. A new section needs its own directory with asidebar.jsand entries inconfig.jsunder bothsidebarandnav. - Images live next to the page that uses them. Anything linked by URL from prose goes in
docs/public. docs/public/llms.txtandllms-full.txtare generated and gitignored. Never edit them.- Verify numbers, addresses and quoted CLI output against their source, such as the
api3dao/contractsrepository, on-chain state or API3 Market, before changing them.
- Write API3 in capitals. Lowercase
api3only in identifiers: package names, paths, URLs and the logo wordmark. Contract names such asApi3ReaderProxyV1and deployed product names such as theApi3 Corevault keep their own spelling. dAPIanddAppin prose,dapianddappin code identifiers.- Hyphens instead of long dashes. No semicolons in prose.
- Name the acting entity, such as API3 or the Market frontend, rather than writing "we" in new text.
- Do not write facts that the next change turns false: exact counts of things that grow, closed-world claims about a set, or lists that need an edit whenever an entry appears. Link to the source instead.
- Target
mainand reference the issue in the description, for exampleCloses #1. - CI runs
pnpm lint,pnpm docs:buildand the link validator. Every pull request gets a Firebase preview deployment.