1个不稳定版本
0.1.0 | 2021年8月23日 |
---|
#2068 在 开发工具
33 每月下载量
18KB
210 代码行
mdbook-man
从mdBook生成man手册页!
使用方法
要使用 mdbook-man,您首先需要通过以下方式安装它
$ cargo install mdbook-man
并将以下内容添加到您的 book.toml
[output.man]
运行 mdbook build
时,man手册页将打印到标准输出。
配置
以下是可用的配置参数
[output.man]
output-dir = "/some/path/to/a/directory" # this directory doesn't have to exist, it will be created automatically
split-chapters = true # By default all chapters will be joined as one single man page,
# to override this set this parameter to true.
示例
您可以在这里查看Rust编程语言书籍,它被编译成man手册页这里。
$ wget https://vv9k.github.io/mdbook-man/book.man
$ man -l book.man
许可证
依赖
~14–25MB
~377K SLoC