This repository contains the Konva documentation website. Docusaurus builds the site from files in content/.
Use Node.js 18 or a later version.
npm install
npm startThe development server reloads most changes without a restart.
npm run checkThis command checks the canonical English site. It checks code fences, the demo gallery, Sandpack dependencies, controlled React drag handlers, TypeScript, the build, first-load performance rules, the sitemap, and generated Markdown pages.
Use the separate commands when you must isolate a failure:
npm run typecheck
npm run build:core
node checksitemap.jsnpm run build builds English and every installed locale for deployment.
scripts/generate-llms.js then writes a Markdown twin of each documentation page.
- Add tutorials and reference articles to
content/docs/. - Add complete application guides to
content/docs/. - Do not edit files in
content/api/by hand. - Run
node create-api-docs.jsafter an API input change.
Each document must have a title, sidebar label, slug, and description. Internal links must use the full .html route.
Chinese is an optional addition. English files are canonical and do not import it.
Delete i18n/zh-Hans/ to remove the locale; no English file or build command needs
another change.
Test the installed translation separately:
npm run check:i18nRun this command after you add translatable interface text:
npm run write-translations -- --locale zh-HansTranslated documents are in i18n/zh-Hans/docusaurus-plugin-content-docs/current/.