3 个版本
0.1.2 | 2019 年 12 月 31 日 |
---|---|
0.1.1 | 2019 年 4 月 21 日 |
0.1.0 | 2019 年 4 月 21 日 |
#1316 在 文本处理
26KB
424 代码行
MDBookshelf
A Rust 库/应用程序,使用 mdbook-epub 将书籍集合渲染为 EPUB。它使用 Tera 模板引擎渲染可选模板。
用于生成 Rust 电子书架 的每日构建。
配置
配置通过 bookshelf.toml
文件处理。
title = "The Rust Language & Ecosystem"
destination-dir = "out"
templates-dir = "templates"
working-dir = "tmp"
[[book]]
repo-url = "https://github.com/rust-lang/book.git"
url = "https://doc.rust-lang.net.cn/stable/book/index.html"
[[book]]
repo-url = "https://github.com/rust-lang/rust-by-example.git"
url = "https://doc.rust-lang.net.cn/stable/rust-by-example/"
[[book]]
repo-url = "https://github.com/rust-lang-nursery/rust-cookbook.git"
url = "https://github.com/rust-lang-nursery/rust-cookbook"
用法
USAGE:
mdbookshelf [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-d, --destination_dir <DESTINATION_DIR> Sets the destination directory
-t, --templates_dir <TEMPLATES_DIR> Sets the templates directory (if not set, will generate manifest.json)
-w, --working_dir <WORKING_DIR> Sets a custom working directory where the book repositories will be
cloned
可以使用选项来覆盖 bookshelf.toml
中指定的值。
贡献
- 清理一些代码 - 这是我写的第一段 Rust 代码。我在阅读 本书 时写了它(以便能够在我的 Kindle 上完成)。如果您知道有什么不是惯用的或不那么好的地方,请随时告诉我 ;)
- 修复一个错误或实现一个新功能
- 创建一个 Pull Request
最近的变化
- 0.1.1 更新了 README
- 0.1.0 第一次发布
许可证
根据 MIT 许可证授权 http://opensource.org/licenses/MIT。此文件可能不按这些条款复制、修改或分发。
依赖关系
~26–39MB
~697K SLoC