skeleton for the Russian translation of the book

This commit is contained in:
Jorge Aparicio 2019-02-08 19:58:55 +01:00
parent 1d52964df7
commit 45659fdbbc
7 changed files with 26 additions and 0 deletions

1
.gitignore vendored
View file

@ -2,5 +2,6 @@
.#* .#*
.gdb_history .gdb_history
/book/book /book/book
/ru/book
/target /target
Cargo.lock Cargo.lock

View file

@ -7,6 +7,10 @@
This book contains user level documentation for the Real Time For the Masses This book contains user level documentation for the Real Time For the Masses
(RTFM) framework. The API reference can be found [here](../api/rtfm/index.html). (RTFM) framework. The API reference can be found [here](../api/rtfm/index.html).
There is a translation of this book in [Russian].
[Russian]: ru/index.html
{{#include ../../README.md:5:46}} {{#include ../../README.md:5:46}}
{{#include ../../README.md:52:}} {{#include ../../README.md:52:}}

View file

@ -4,10 +4,12 @@ main() {
rm -f .cargo/config rm -f .cargo/config
cargo doc --features timer-queue cargo doc --features timer-queue
( cd book && mdbook build ) ( cd book && mdbook build )
( cd ru && mdbook build )
local td=$(mktemp -d) local td=$(mktemp -d)
cp -r target/doc $td/api cp -r target/doc $td/api
cp -r book/book $td/ cp -r book/book $td/
cp -r ru/book $td/book/ru
cp LICENSE-* $td/book/ cp LICENSE-* $td/book/
mkdir ghp-import mkdir ghp-import
@ -22,6 +24,15 @@ main() {
rm -rf $td rm -rf $td
} }
# fake Travis variables to be able to run this on a local machine
if [ -z ${TRAVIS_BRANCH-} ]; then
TRAVIS_BRANCH=master
fi
if [ -z ${TRAVIS_PULL_REQUEST-} ]; then
TRAVIS_PULL_REQUEST=false
fi
if [ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ]; then if [ $TRAVIS_BRANCH = master ] && [ $TRAVIS_PULL_REQUEST = false ]; then
main main
fi fi

View file

@ -24,6 +24,7 @@ main() {
cargo doc cargo doc
fi fi
( cd book && mdbook build ) ( cd book && mdbook build )
( cd ru && mdbook build )
local td=$(mktemp -d) local td=$(mktemp -d)
cp -r target/doc $td/api cp -r target/doc $td/api

5
ru/book.toml Normal file
View file

@ -0,0 +1,5 @@
[book]
authors = ["Jorge Aparicio"]
multilingual = false
src = "src"
title = "Real Time For the Masses"

3
ru/src/SUMMARY.md Normal file
View file

@ -0,0 +1,3 @@
# Summary
- [Chapter 1](./chapter_1.md)

1
ru/src/chapter_1.md Normal file
View file

@ -0,0 +1 @@
# Chapter 1