This repository contains the Docusaurus documentation for the KoliBri component library.
- Use pnpm as the package manager. Run
pnpm installif dependencies are missing. - Check TypeScript and ESLint rules with
pnpm run lint. - Ensure the site can be built locally with
pnpm run build.
Commits must follow the Conventional Commits style. A commitlint configuration is present in commitlint.config.js.
Follow these rules when editing or adding docs:
- File names must be in English to generate SEO-friendly URLs.
- Keep translations close to the original text.
- Translation keys are written in English using kebab-case.
- The default translation text (
message) is written in German. - Use the
translatemethod rather than theTranslatecomponent. - Do not add custom translation descriptions.
- Avoid explicit
slugdefinitions (except indocs/welcome.md); slugs are generated from file names. - All code samples and technical terms are in English.
- Remove tag sections: replace
/tags:(\n.+)+/with---.
- Tabs are used for indentation except in Markdown files (see
.editorconfig). - Prettier is configured for a line width of 120 characters and single quotes.
Run the following commands and ensure they succeed:
pnpm run lint
pnpm run build