Skip to content

A Docker-based documentation system combining MkDocs and Word document generation.

Notifications You must be signed in to change notification settings

genpat-it/wiki-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wiki Engine

A Docker-based documentation system combining MkDocs and Word document generation.

Quick Start

Assume your wiki is in /your_wiki folder.

Important: It's crucial to mount that folder in the /wiki docker folder.

Build the docker image

Cloning the repo

git clone https://github.com/genpat-it/wiki-engine
cd wiki-engine
docker build -t wiki-engine .

Using the GitHub Registry

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

Windows Users

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.

Use mkdocs

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.

Build docx and html outputs

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.

Directory Structure of your wiki

/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

Features

  • 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

Prerequisites

  • Docker
  • Write permissions in the wiki directory

About

A Docker-based documentation system combining MkDocs and Word document generation.

Resources

Stars

Watchers

Forks

Packages