- Add crowdin.yml for the Docusaurus layout: documentation pages and UI strings
(navbar, footer) with Russian as the source language. Docusaurus theme strings
(code.json) are excluded, since the theme already has translations
- Add the CI workflow: uploads sources to Crowdin and downloads translations on
master, builds and deploys to GitHub Pages, nightly rebuild with fresh translations.
Local translations (i18n/en) are uploaded to Crowdin only on demand: with
"[crowdin upload translations]" in the commit message or via a manual run
- Publish languages other than Russian and English only when their translation
progress in Crowdin is at least 60% (scripts/crowdin-locales.mjs, DOCS_LOCALES)
- Add Chinese (zh-Hans, served under /zh/) to the locales configuration
- Generate the root index.html and robots.txt from the actually built locales
- Keep only the English translation in the repository, other i18n dirs are generated
- Preserve section ids of the old Sphinx-based documentation with invisible
anchors (install-server, vanilla, authorization-code-grant, uuid, etc.),
so existing external links still lead to the right section
- Set explicit ids for all headings, so anchors are the same in both locales
instead of locale-dependent auto-generated slugs
- Link to minecraft-auth by the file path, so the link is validated on build
Build each locale into its own prefix (/ru/, /en/) with trailingSlash: false,
so pages are generated as build/<locale>/<page>.html exactly like the old
documentation and the existing URLs (e.g. /ru/api.html) keep working on
GitHub Pages without any redirects.
The site root is assembled by the postbuild script:
- index.html redirects to /ru/ or /en/ based on the browser language
- 404.html is copied from the default locale (GitHub Pages only uses the root one)
- CNAME, .nojekyll and robots.txt pointing to per-locale sitemaps
* Suggest my npm library
Suggest my npm library as an unofficial library for ely.by for node.js
* Fix link
---------
Co-authored-by: ErickSkrauch <erickskrauch@yandex.ru>
- removed all translations and used Russian as the base language
- integrated crowdin
- new multilang site layout
- upgraded sphinx
- fixed search, now it correctly handles articles language
* replaced static authlib links with ely.by/load link
* removed unused authlibs from static
* Replace authlib installation example image. Final polishing of texts
Co-authored-by: ErickSkrauch <erickskrauch@ely.by>
* Added English translation of skins system article
* Apply suggestions from code review
Co-Authored-By: erickskrauch <erickskrauch@ely.by>
* Update English skins system article according to the Russian article
* Apply review recommendations
* Draft rewrite of skins system docs
* Second draft of skins system docs rewrite
* Final version of the article
* Apply suggestions from code review
Co-Authored-By: erickskrauch <erickskrauch@ely.by>
* Update source/ru/skins-system.rst
Co-Authored-By: erickskrauch <erickskrauch@ely.by>