This repository contains the source of "BlueOS kernel book".
Most parts of the BlueOS project are powered by Rust programming language, including this book. Please read rustup to install native Rust toolchain to continue.
We use mdBook and mdbook-i18n-helpers to build this book. Install mdBook 0.5.4 and the latest published mdbook-i18n-helpers, as CI does:
cargo install mdbook --version 0.5.4 --locked cargo install mdbook-i18n-helpers --locked
CI pins mdBook and tracks new mdbook-i18n-helpers releases so compatibility issues surface during builds.
--locked uses each package's published dependency lockfile; it does not pin the tool version.
To build the book, run
mdbook build -d book
To build a Chinese version of this book, please refer to mdbook-i18n-helpers first to install prerequisites. Then use command
MDBOOK_BOOK__LANGUAGE=zh mdbook build -d book/zh
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)