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 |
- Docker Image: allfunc/mdbook
- https://hub.docker.com/r/allfunc/mdbook
- create SUMMARY.md file with such content.
# Summary
- [Chapter 1](./chapter_1.md)
- Copy bin/preview.sh to same folder.
- or download https://raw.githubusercontent.com/allfunc/docker-mdbook/main/bin/preview.sh
- chmod +x preview.sh
- Run following command
./preview.sh start
curl https://raw.githubusercontent.com/allfunc/docker-mdbook/main/bin/preview.sh | bash -s -- start
- create any folder (such as public) inside src folder
<div data-import="/public/import-demo.html"></div>
- sample md file
- sample public folder (could be any)
- sample import HTML file
- https://github.com/rust-lang/mdBook
- https://crates.io/crates/mdbook
- DOC http://rust-lang-nursery.github.io/mdBook/index.html
- https://github.com/sytsereitsma/mdbook-plantuml
- https://crates.io/crates/mdbook-plantuml
- https://plantuml.com/
docker pull allfunc/mdbook
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
- SUMMARY.md
- Render
MIT 2023