Skip to main content

mkdocs

·120 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/
version: '3'
services:
  mkdocs:
    container_name: 'mkdocs'
    restart: unless-stopped
    image: squidfunk/mkdocs-material
    environment:
      - PUID=1000
      - PGID=1000
    volumes:
      #- /mnt/store/app/mkdocs/:/docs
      - docs_nfs:/docs
    stdin_open: true
    tty: true    
    ports:
      - "9896:8000"

volumes:
  docs_nfs:
    name: docs_nfs
    driver_opts:
      type: nfs
      o: addr=truenas,nolock,soft,ro
      device: :/mnt/store/vault/app/mkdocs