Currently circuitversedocs is made using Docsifyjs documentation site generator which can be internationalised easily.
- use different repositories for each language.
- use same repository with subfolders for each language.
all the en version files can be present in,
/docs
for this url: /#/
/docs/en
for this url: /#/en/
create subfolder eg:/docs/fr
and place fr version of site in it.for this url will start with /#/ru/
docsify theme is basically divided into navbar, sidebar, content area
-
navbar: navbar currently not used by cv but can be implemented by creating _navbar.md file to place language switcher in navbar
-
sidebar: we have sidebar content in _sidebar.md
-
content area: container for main content markdown files
-
sidebar: as site is static we need _sidebar.md file for each version of language.
eg: for en sidebar.md contains [Home](/) for ru sidebar.md contains [дома](/ru/)
in such a way we automatically link different version of files with each other and serve right type of markdown files according to language set by user
-
content area: translated version of md files will be stored in respective language folders with appropriate localized sidebar
-
navbar- we need navbar.md file each language folder to hold language switcher. bascially this file will contain dropdown list of languages with link for current active language disabled and text for current active language highlighted
eg:
- Translations
- [:us: english](/)
- [:cn: 中文](zh-cn/)
- [:de: Deutsch](/de-de/)
- [:es: Spanish](/es/)
- ** Russian **
if we dont use highlight current active lang then we might need only file at core of repo.