2017 © Pedro Peláez
 

library bookdown2mkdocs

Tool for converting bookdown.json to mkdocs.yml for publishing bookdown docs to rtfd.org

image

phly/bookdown2mkdocs

Tool for converting bookdown.json to mkdocs.yml for publishing bookdown docs to rtfd.org

  • Monday, August 24, 2015
  • by weierophinney
  • Repository
  • 2 Watchers
  • 0 Stars
  • 217 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Bookdown2Mkdocs

Convert your bookdown.json files to mkdocs.yml so that you can publish documentation to rtfd.org:, (*1)

$ 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.md pointing to the project README.md if such a symlink does not exist. This is because you cannot have index pages in bookdown; those are reserved for auto-generated TOCs.
  • References to remote bookdown.json files will not work, only local files.
  • The command will overwrite mkdocs.yml.

Installation

Use Composer to install the tool:, (*2)

$ composer global require phly/bookdown2mkdocs

Tip: add $HOME/.composer/vendor/bin to your $PATH., (*3)

Usage

Excecute the command in the root of your project., (*4)

bookdown2mkdocs.php convert [] --site-name= --repo-url= --copyright-url= --copyright-author= [--mkdocs=], (*5)

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

The Versions

24/08 2015

dev-master

9999999-dev

Tool for converting bookdown.json to mkdocs.yml for publishing bookdown docs to rtfd.org

  Sources   Download

BSD-2-Clause

The Requires

 

documentation bookdown mkdocs

24/08 2015

0.1.2

0.1.2.0

Tool for converting bookdown.json to mkdocs.yml for publishing bookdown docs to rtfd.org

  Sources   Download

BSD-2-Clause

The Requires

 

documentation bookdown mkdocs

24/08 2015

0.1.1

0.1.1.0

Tool for converting bookdown.json to mkdocs.yml for publishing bookdown docs to rtfd.org

  Sources   Download

BSD-2-Clause

The Requires

 

documentation bookdown mkdocs

20/08 2015

0.1.0

0.1.0.0

Tool for converting bookdown.json to mkdocs.yml for publishing bookdown docs to rtfd.org

  Sources   Download

BSD-2-Clause

The Requires

 

documentation bookdown mkdocs