Added mdbook translation wrapper

master
Illia Chub 2021-11-04 16:48:11 +02:00
parent f1118ffe5e
commit 90dc3c4834
6 changed files with 24 additions and 29 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
__pycache__/
__pycache__/
src/

View File

@ -1,13 +0,0 @@
# 👋 Введение
[SelfPrivacy](https://selfprivacy.org) — мобильное [приложение](https://f-droid.org/en/packages/pro.kherel.selfprivacy/) разворачивает сервер с готовыми к использованию сервисами:
- Электронная почта
- Парольный менеджер
- Мессенджер
- VPN
- Файловое хранилище
- Конференции
- ... и многие другие [сервисы](services.md)
## ⚠️ Beta
Текущий релиз пока не готов к повседневному использованию неквалифицированным пользователем.

View File

@ -1,13 +0,0 @@
# 👋 Introduction
[SelfPrivacy](https://selfprivacy.org) - mobile [app](https://f-droid.org/en/packages/pro.kherel.selfprivacy/) deploys a server with ready-to-use services:
- Email
- Password manager
- Messenger
- VPN
- File storage
- Conferences
- ... and many other [services](services.md)
## ⚠️ Beta
The current release is not yet ready for everyday use by an unskilled user.

View File

@ -1 +0,0 @@
Привет, мир!

22
translate_docs.sh Executable file
View File

@ -0,0 +1,22 @@
export ruInputFiles=$(ls src/ru/src)
for inputFile in ${ruInputFiles}
do
python3.9 ${1} --file src/ru/src/${inputFile} --output src/en/src/${inputFile}
done
buildEnglishTranslation()
{
cd src/en/
mdbook build
}
buildRussianTranslations()
{
cd src/ru/
mdbook build
}
buildEnglishTranslation
cd ../../
buildRussianTranslations

View File

@ -1 +0,0 @@
Hello, world!