![]() |
VOOZH | about |
Bookdown.io generates DocBook-like HTML output using Markdown and JSON files instead of XML.
100K+
This container generates your Bookdown.io documentation.
Run the following command with the path to your bookdown.json file.
$ docker run -it --rm -v $(pwd):/app sandrokeil/bookdown doc/bookdown.json
or if you want to try the develop version to test latest features use
$ docker run -it --rm -v $(pwd):/app sandrokeil/bookdown:develop doc/bookdown.json
This Docker image comes with Bootswatch.com styles and Prism syntax highlighting powered by an awesome Bookdown.io template library on GitHub (tobiju/bookdown-bootswatch-templates).
Choose your preferred style by setting the CSS_BOOTSWATCH and CSS_PRISM environment variable before generating the book.
The default Bootswatch style is cerulean and for Prism ghcolors. See the example below how to use another style.
Visit bootswatch.com to see how the style looks like.
Visit prismjs.com / prism-styles to see how the Prism style looks like.
The style is set by an environment CSS_BOOTSWATCH variable and the PRISM style by CSS_PRISM.
Here is an example for the superhero style with the prism coy style.
$ docker run -it --rm -e CSS_BOOTSWATCH=superhero -e CSS_PRISM=coy -v $(pwd):/app sandrokeil/bookdown doc/bookdown.json
Content type
Image
Digest
Size
90.5 MB
Last updated
almost 8 years ago
docker pull sandrokeil/bookdown:develop