mirror of
https://github.com/elyby/docs.git
synced 2026-11-29 19:03:23 +05:30
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
6 lines
112 B
Plaintext
6 lines
112 B
Plaintext
User-agent: *
|
|
Allow: /
|
|
|
|
Sitemap: https://docs.ely.by/ru/sitemap.xml
|
|
Sitemap: https://docs.ely.by/en/sitemap.xml
|