Cvolo Docs is the official documentation website for the Cvolo programming language. It provides a versioned guide to the language, examples written in Cvolo, and reference material for documentation contributors.
Select a language to browse its complete localization directory:
| Language | Native name |
|---|---|
| English | English |
| Russian | Русский |
Note
The main documentation version currently describes the language under active development. The compiler and the documentation may evolve together.
- Node.js 22.12 or later
- npm
git clone https://github.com/CvoloLang/book.git
cd book
npm ci
npm run devnpm run docs:build
npm run docs:verify
npm run check
npm run builddocs:build generates the navigation, routes, and search index from the source content. docs:verify checks the generated documentation model; check runs Svelte and TypeScript checks; build produces the static website.
Documentation content is maintained in Markdown, organized by version, language, and section:
src/content/
└── <version>/
└── <language>/
├── book/
└── authoring/
config/
├── book.toml
└── versions.toml
book/contains the language tutorial, organized into numbered chapters.authoring/explains how to write and format documentation.config/book.tomldefines site metadata, languages, sections, and header links.config/versions.tomldefines the documentation versions available in the version selector.chapter.tomlfiles define page order within individual chapters.
Translated pages share language-neutral filenames. For example, every available translation of 4-4-composition.md uses the path:
src/content/main/<language>/book/04-types/4-4-composition.md
Switching languages preserves the current page whenever a translation exists.
Contributions, corrections, and translations are welcome.
- Edit the Markdown source under
src/content/. - Keep available translations in sync when editing a page.
- Add new pages to the corresponding
chapter.tomlfile for each available translation. - Run
npm run docs:verifyandnpm run checkbefore submitting a pull request.
See the Authoring section on the documentation website for examples of code tabs, highlighting, diffs, and other supported formatting.
Do not edit generated files under src/lib/generated/ or static/search-index.json by hand. They are regenerated from the source Markdown and TOML configuration.
The documentation website is published through GitHub Pages:
https://cvololang.github.io/book/
The Pages workflow builds and deploys the static site when changes are pushed to master.
For a custom domain, set the repository variable DOCS_CUSTOM_DOMAIN to the desired hostname. The workflow will remove the /book base path and generate the matching CNAME.
- Cvolo Compiler - source code and development of the programming language.