A Docusaurus site. Built as the blockly-docs Nx project; it is not released to npm.
Repo-wide conventions are in the root AGENTS.md.
Run from packages/docs/, or from the repo root as npm run build-docs.
npm start # build the API reference, then serve the site locally
npm run build # production build
npm run serve # serve an already-built site
npm run clear # clear the Docusaurus cache
npm run lint # ESLint over docs/**/*.mdx
npm run lint-fixdocs/reference/is generated by TypeDoc during the Docusaurus build, and is gitignored. Never edit those files directly — fix the TSDoc inpackages/blockly/core/instead.- The reference is built from
blockly_api.json, not from the current source. That file is a snapshot of the core library's API committed during a release, so the site documents the released API rather than whatever is onmain. To preview your own TSDoc changes, runnpm run reference:refreshto regenerate it locally — then leave it out of your commit, since only a release should update it. - Markdown and MDX here are linted, not Prettier-formatted.
packages/docs/**/*.mdand*.mdxare listed in.prettierignoreand handled by ESLint witheslint-plugin-mdxinstead, sonpm run formatwill not touch them. - Prose wrapping is preserved rather than reflowed, so existing line breaks in prose are intentional — don't rewrap paragraphs you aren't otherwise changing.