mirror of
https://github.com/elyby/docs.git
synced 2026-11-29 19:03:23 +05:30
a308aa1c101ab6e1fda149743973d124322c22b7
Ely.by Docs
Source of docs.ely.by, built with Docusaurus.
Development
Requires Node.js 22.
npm ci
npm run start
The dev server shows the Russian version. To check another language, download the translations from Crowdin
(requires the CROWDIN_PERSONAL_TOKEN environment variable) and start the server for that locale:
npm run write-translations -- --locale ru --override
npx @crowdin/cli@4 download
npm run start -- --locale en
npm run build builds the whole site into build/, npm run serve serves it.
Writing
- Pages are written in Russian in
docs/(MDX). Don't wrap lines: one paragraph is one line. - Translations are made only on Crowdin. The
i18n/directory is generated and not committed. - Keep the
{#id}of headings: they are the anchors of the existing links.
Deployment
Every push to master uploads the source strings to Crowdin, downloads the translations and deploys the site
to the gh-pages branch. A language is published once its translation reaches 60%. The site is also rebuilt
nightly to publish fresh translations.
Languages
Python
50.3%
Makefile
23.2%
Batchfile
22.3%
CSS
2.7%
HTML
1.5%