GitHub - rust-lang-th/book-th: The Rust Programming Language ฉบับแปลภาษาไทย
This repository contains the source of "The Rust Programming Language" book translate to Thai language.
Requirements
Building the book requires mdBook, ideally the same version that rust-lang/rust uses in this file. To get it:
$ cargo install mdbook --vers [version-num]
Building
To build the book, type:
The output will be in the book
subdirectory. To check it out, open it in
your web browser.
Firefox:
$ firefox book/index.html # Linux
$ open -a "Firefox" book/index.html # OS X
$ Start-Process "firefox.exe" .\book\index.html # Windows (PowerShell)
$ start firefox.exe .\book\index.html # Windows (Cmd)
Chrome:
$ google-chrome book/index.html # Linux
$ open -a "Google Chrome" book/index.html # OS X
$ Start-Process "chrome.exe" .\book\index.html # Windows (PowerShell)
$ start chrome.exe .\book\index.html # Windows (Cmd)
To run the tests:
Contributing
We'd love your help! Please see CONTRIBUTING.md to learn about the kinds of contributions we're looking for.
Spellchecking
To scan source files for spelling errors, you can use the spellcheck.sh
script. It needs a dictionary of valid words, which is provided in
dictionary.txt
. If the script produces a false positive (say, you used word
BTreeMap
which the script considers invalid), you need to add this word to
dictionary.txt
(keep the sorted order for consistency).