Docker Image with mdBook + plugins. Meant for internal projects.
Table of Contents
-
Clone the repo
git clone https://github.com/jeffersonroth/mdbook-environment.git
-
Build the docker image locally:
docker build -t local-mdbook-base-image .
-
Serve the example book locally
docker compose up
-
Check the rendered book in localhost
Before pushing your local branch:
-
Build the docker image locally:
docker build -t local-mdbook-base-image .
-
Serve the example book locally:
docker compose up --force-recreate --build
-
Review the content in localhost
-
Push changes to Docker Hub
sh ./dockerhub-deploy.sh
Docker image used to build the book in html.
mdBook plugins to generate table of contents, render Mermaid diagrams, etc.
- mdbook:
- mdbook-toc:
- mdbook-footnote
- mdbook-emojicodes
- mdbook-mermaid
- mdbook-plantuml
- mdbook-admonish
- mdbook-catppuccin
- mdbook-i18n-helpers:
- mdbook-reference-table
mdbook-linkcheckmdbook-i18nmdbook-svgbobmdbook-manmdbook-pdfmdbox-katexmdbook-epubmdbook-templatemdbook-utils
Copyright (C) 2024 Jefferson Johannes Roth Filho. See LICENSE
for more information.
Jefferson Roth - jjrothfilho@gmail.com
Project Link: https://hub.docker.com/r/jeffroth/mdbook-environment