Skip to content

allfunc/docker-mdbook

Repository files navigation

CircleCI Docker Pulls

docker-mdbook (Alpine)

A set of tool for mdbook.

Package Version
mdbook 0.4.40
mdbook-toc 0.14.2
mdbook-mermaid 0.14.0
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