mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-24 19:09:33 +01:00
skeleton for the Russian translation of the book
This commit is contained in:
parent
1d52964df7
commit
45659fdbbc
7 changed files with 26 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,5 +2,6 @@
|
|||
.#*
|
||||
.gdb_history
|
||||
/book/book
|
||||
/ru/book
|
||||
/target
|
||||
Cargo.lock
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
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).
|
||||
|
||||
There is a translation of this book in [Russian].
|
||||
|
||||
[Russian]: ru/index.html
|
||||
|
||||
{{#include ../../README.md:5:46}}
|
||||
|
||||
{{#include ../../README.md:52:}}
|
||||
|
|
|
@ -4,10 +4,12 @@ main() {
|
|||
rm -f .cargo/config
|
||||
cargo doc --features timer-queue
|
||||
( cd book && mdbook build )
|
||||
( cd ru && mdbook build )
|
||||
|
||||
local td=$(mktemp -d)
|
||||
cp -r target/doc $td/api
|
||||
cp -r book/book $td/
|
||||
cp -r ru/book $td/book/ru
|
||||
cp LICENSE-* $td/book/
|
||||
|
||||
mkdir ghp-import
|
||||
|
@ -22,6 +24,15 @@ main() {
|
|||
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
|
||||
main
|
||||
fi
|
||||
|
|
|
@ -24,6 +24,7 @@ main() {
|
|||
cargo doc
|
||||
fi
|
||||
( cd book && mdbook build )
|
||||
( cd ru && mdbook build )
|
||||
|
||||
local td=$(mktemp -d)
|
||||
cp -r target/doc $td/api
|
||||
|
|
5
ru/book.toml
Normal file
5
ru/book.toml
Normal 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
3
ru/src/SUMMARY.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Summary
|
||||
|
||||
- [Chapter 1](./chapter_1.md)
|
1
ru/src/chapter_1.md
Normal file
1
ru/src/chapter_1.md
Normal file
|
@ -0,0 +1 @@
|
|||
# Chapter 1
|
Loading…
Reference in a new issue