Part of the Docs-as-Code Toolkit
β https://github.com/docs-as-code-toolkit
A lightweight Docker image for running Docs-as-Code pipelines in a fully reproducible environment β locally and in CI.
Stop installing random tools locally.
Stop breaking your CI builds.
Just use the same environment everywhere.
Unlike ad-hoc setups, this image is designed to be the single source of truth for your documentation toolchain.
- Reproducible documentation builds across environments
- Zero-setup onboarding for contributors
- Consistent toolchain in local and CI workflows
This image provides a ready-to-use toolchain for Docs-as-Code pipelines:
- Asciidoctor
- Pandoc
- Graphviz
- Common CLI utilities
π Everything preconfigured to work together.
Documentation pipelines often suffer from:
- β "Works on my machine"
- β Different tool versions locally vs CI
- β Painful setup for new contributors
- β Hidden dependencies
This image solves that by providing:
A consistent, versioned, reproducible environment for documentation builds.
docker run --rm \
-v $(pwd):/workspace \
-w /workspace \
ghcr.io/docs-as-code-toolkit/docs-toolbox:latest \
./asciidoctor -vπ‘ On Windows, replace
$(pwd)with the appropriate path syntax.
./build.sh <some action>(assuming your project wraps the container execution)
jobs:
docs:
runs-on: ubuntu-latest
container:
image: ghcr.io/docs-as-code-toolkit/docs-toolbox:latest
steps:
- uses: actions/checkout@v4
- run: ./gradlew build- π Generate HTML / PDF / Markdown from AsciiDoc
- π§± Docs-as-Code pipelines
- π¦ CI/CD documentation builds
- π₯ Onboarding without local setup
This image follows a few simple principles:
- π Reproducibility over convenience
- π¦ Everything included, nothing assumed
- βοΈ Same environment locally and in CI
- π§Ό No hidden magic
- latest β most recent stable toolbox
- version tags β reproducible builds
df-<hash>β image of latest commit (does not need to be the same as 'latest')
π Pin versions in CI for full determinism.
If you need additional tools:
- Extend this image via your own Dockerfile
- Or fork and adapt it to your pipeline
This image powers the following real-world project:
π https://github.com/dieterbaier/profile
A real-world example of a Docs-as-Code pipeline for personal branding.
This project is licensed under the MIT License.
