phly/bookdown2mkdocs
最新稳定版本:0.1.2
Composer 安装命令:
composer require phly/bookdown2mkdocs
包简介
Tool for converting bookdown.json to mkdocs.yml for publishing bookdown docs to rtfd.org
README 文档
README
⚠️ Archived 2025-08-17
Use at your own risk.
Convert your bookdown.json files to mkdocs.yml so that you can publish
documentation to rtfd.org:
$ cd project-with-bookdown $ path/to/bin/bookdown2mkdocs.php convert doc/bookdown.json \ > --site-name=my-project \ > --repo-url=http://example.com/project \ > --copyright-author="Me Me Me" \ > --copyright-url=http://example.com
Caveats
- The command assumes that your documentation is in
doc/book/.- The command assumes that you want rendered documentation in
doc/html/.- The command will create a symlink
doc/book/index.mdpointing to the projectREADME.mdif such a symlink does not exist. This is because you cannot haveindexpages in bookdown; those are reserved for auto-generated TOCs.- References to remote
bookdown.jsonfiles will not work, only local files.- The command will overwrite
mkdocs.yml.
Installation
Use Composer to install the tool:
$ composer global require phly/bookdown2mkdocs
Tip: add $HOME/.composer/vendor/bin to your $PATH.
Usage
Excecute the command in the root of your project.
bookdown2mkdocs.php convert [] --site-name= --repo-url= --copyright-url= --copyright-author= [--mkdocs=]
Arguments
[<bookdown-path>]: Path to bookdown.json; if not present, assumes doc/bookdown.json--site-name=: Site/project name; typically used as the subdomain in rtfd.org--repo-url=: Repository URI (linked from generated docs)--copyright-url=: URL associated with the copyright holder--copyright-author=: Copyright holder/author[--mkdocs=]: Additional default configuration for mkdocs, as a JSON string
统计信息
- 总下载量: 246
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2015-08-20