Skip to main content

mkdocs

··112 words·1 min·
Michael
Author
Michael
some dude that works on datacenters, plays guitar, streams, has a lot of side projects and unhealthy addiction to ow

What is mkdocs?
#

MkDocs is a fast, simple, and extensible static site generator geared specifically toward building project documentation. It relies heavily on Markdown files, which makes it incredibly accessible for developers who want to write docs as easily as they write code.

Docker Compose Example
#

Running mkdocs with material theme and plugins built in.

Info

There is some setup of folders and things that are not automatic so wont work straight out of the box.

# mkdocs -- https://squidfunk.github.io/mkdocs-material/

services:
    public-mkdocs:
        container_name: "public-mkdocs"
        image: material2:latest
        environment:
            - PUID=1000
            - PGID=1000
        volumes:
            - ${MKDOCS_DATA}/public:/docs
        stdin_open: true
        tty: true
        ports:
            - "9896:8000"
        networks:
            - frontend
        restart: unless-stopped

networks:
    frontend:
        external: true