A Docker-based documentation system combining MkDocs and Word document generation.
Assume your wiki is in /your_wiki
folder.
Important: It's crucial to mount that folder in the
/wiki
docker folder.
git clone https://github.com/genpat-it/wiki-engine
cd wiki-engine
docker build -t wiki-engine .
docker pull ghcr.io/genpat-it/wiki-engine:latest
docker build -t ghcr.io/genpat-it/wiki-engine .
docker tag ghcr.io/genpat-it/wiki-engine wiki-engine
For Windows users, it is recommended to use PowerShell when running Docker commands. PowerShell provides a more consistent environment for managing Docker, especially when working with paths and volume mounts.
docker run -it --rm -u $(id -u):$(id -g) -v /your_wiki:/wiki wiki-engine mkdocs build -f /wiki/mkdocs.yml --site-dir /wiki/target/mkdocs
Your mkdocs output will be available at /your_wiki/target/mkdocs
folder.
Run:
docker run -it --rm -u $(id -u):$(id -g) -v /your_wiki:/wiki wiki-engine build
Your output will be available at /your_wiki/target/docx
and /your_wiki/target/html
folders.
/your_wiki/
├── docs/ # Markdown files
├── fonts/ # Custom fonts
├── templates/ # Word templates
├── theme/ # Website theme
├── mkdocs.yml # MkDocs configuration
└── target/ # Build output
├── docx/ # Generated Word documents
└── html/ # Generated website
- Generates both website and Word documentation
- Supports custom fonts and themes
- Preserves user permissions with proper UID/GID mapping
- Converts markdown to HTML and DOCX formats
- Docker
- Write permissions in the wiki directory