-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the Ruxgo book and update README.md
- Loading branch information
Showing
34 changed files
with
489 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ compile_commands.json | |
ruxos_bld | ||
sqlite-amalgamation-3410100 | ||
file.sqlite | ||
dump.rdb | ||
dump.rdb | ||
iperf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Ruxgo documentation | ||
|
||
This directory contains Ruxgo's documentation: The Ruxgo Book which is built with [mdbook](https://github.com/rust-lang/mdBook) . | ||
|
||
## Building the book | ||
|
||
Building the book requires mdBook. To get it: | ||
|
||
``` | ||
$ cargo install mdbook | ||
``` | ||
|
||
To build the book: | ||
|
||
``` | ||
$ mdbook build | ||
``` | ||
|
||
`mdbook` provides a variety of different commands and options to help you work on the book: | ||
|
||
- `mdbook build --open`: Build the book and open it in a web browser. | ||
- `mdbook serve`: Launches a web server on localhost. It also automatically rebuilds the book whenever any file changes and automatically reloads your web browser. | ||
|
||
The book contents are driven by the `SUMMARY.md` file, and every file must be linked there. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
book |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* @see https://github.com/HillLiu/docker-mdbook | ||
*/ | ||
window.elasticlunr.Index.load = (index) => { | ||
const FzF = window.fzf.Fzf; | ||
const storeDocs = index.documentStore.docs; | ||
const indexArr = Object.keys(storeDocs); | ||
const ofzf = new FzF(indexArr, { | ||
selector: (item) => { | ||
const res = storeDocs[item]; | ||
res.text = `${res.title}${res.breadcrumbs}${res.body}`; | ||
return res.text; | ||
}, | ||
}); | ||
return { | ||
search: (searchterm) => { | ||
const entries = ofzf.find(searchterm); | ||
return entries.map((data) => { | ||
const { item, score } = data; | ||
return { | ||
doc: storeDocs[item], | ||
ref: item, | ||
score, | ||
}; | ||
}); | ||
}, | ||
}; | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[book] | ||
authors = ["Ybeichen"] | ||
language = "zh" | ||
multilingual = false | ||
src = "src" | ||
title = "Ruxgo 手册" | ||
|
||
[output.html] | ||
curly-quotes = true # Enable smart-punctuation feature for more than quotes. | ||
git-repository-url = "https://github.com/syswonder/ruxgo" | ||
search.use-boolean-and = true | ||
git-repository-icon = "fa-github" | ||
additional-js = ["assets/fzf.umd.js","assets/elasticlunr.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Ruxgo Book | ||
|
||
[简介](./introduction.md) | ||
|
||
* [Ruxgo 安装](./installation.md) | ||
|
||
* [Ruxgo 指南](guide/index.md) | ||
* [设计理念](guide/design_principle.md) | ||
* [借鉴 Cargo](guide/learn_from_cargo.md) | ||
* [C/C++ 构建过程的思考](guide/reflections_on_construct.md) | ||
* [Ruxgo 要实现的功能](guide/ruxgo_functionality.md) | ||
* [作为 RuxOS 的伴生工具](guide/companion_tool_to_ruxos.md) | ||
* [设计特性](guide/design_features.md) | ||
* [TOML 文件说明](guide/toml_file.md) | ||
* [builder 模块](guide/builder_module.md) | ||
* [target 模块](guide/target_module.md) | ||
* [os 模块](guide/os_module.md) | ||
* [TOML 文件示例](guide/toml_example.md) | ||
|
||
* [Ruxgo 命令](commands/index.md) | ||
* [通用命令](commands/general-commands.md) | ||
* [ruxgo help](commands/ruxgo-help.md) | ||
* [ruxgo version](commands/ruxgo-version.md) | ||
* [构建命令](commands/build-commands.md) | ||
* [ruxgo build](commands/ruxgo-build.md) | ||
* [ruxgo run](commands/ruxgo-run.md) | ||
* [ruxgo clean](commands/ruxgo-clean.md) | ||
|
||
* [运行不同的app](./run_apps.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# 构建命令 | ||
|
||
* [ruxgo build](./ruxgo-build.md) | ||
|
||
* [ruxgo run](./ruxgo-run.md) | ||
|
||
* [ruxgo clean](./ruxgo-clean.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 通用命令 | ||
|
||
* [ruxgo help](./ruxgo-help.md) | ||
|
||
* [ruxgo version](./ruxgo-version.md) |
Oops, something went wrong.