/docker-mdbook

A set of tool for mdbook.

Primary LanguageShell

CircleCI Docker Pulls

docker-mdbook (Alpine)

A set of tool for mdbook.

Package Version
mdbook 0.4.36
mdbook-toc 0.14.1
mdbook-mermaid 0.12.6
mdbook-plantuml 0.8.0

GIT

Docker hub

Usage

  1. create SUMMARY.md file with such content.
# Summary

-   [Chapter 1](./chapter_1.md)
  1. Copy bin/preview.sh to same folder.
  2. Run following command
./preview.sh start

Curl Example

curl https://raw.githubusercontent.com/allfunc/docker-mdbook/main/bin/preview.sh | bash -s -- start

import HTML

  • create any folder (such as public) inside src folder
<div data-import="/public/import-demo.html"></div>

APP

mdbook

mdbook-toc

mdbook-mermaid

mdbook-plantuml

update docker image

docker pull allfunc/mdbook

Troubleshooting

docker run --rm allfunc/mdbook -V
docker run -p 3888:3888 -e PORT=3888 \
    -u $(id -u):$(id -g) \
    -v $(pwd):/mdbook/src \
    --name mdbook \
    --rm allfunc/mdbook

Official Doc

MIT 2023