Skip to content

Zensical is a modern static site generator designed to simplify building and maintaining project documentation.

License

Notifications You must be signed in to change notification settings

joshooaj/zensical-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zensical Docker Image (Unofficial)

Build Docker Image Version GitHub License

Screenshot of default Zensical site

This is an unofficial Zensical container image for building and publishing static sites using content authored in markdown format. Zensical is a new SSG built by same folks behind the popular Material for MkDocs theme.

Quick start

If you already use Python, it is very easy to install and use Zensical container-free. However, if you're like me and prefer to run as many tools as possible in a container for security, and consistent reproducibility, feel free to use this image to scaffold and build your Zensical sites. Until there's an official first-party image published by Zensical anyway, then definitely use that one.

# Pull the image and/or check the version
docker run --rm joshooaj/zensical --version

# Create a new Zensical site in the subfolder "mysite"
docker run --rm -v ./mysite:/docs joshooaj/zensical new

# Serve the site
docker run --rm -v ./mysite:/docs -p 8000:8000 joshooaj/zensical

# Build site (output in ./mysite/site/)
docker run --rm -v ./mysite:/docs joshooaj/zensical build

# Build site with clean cache (output in ./mysite/site/)
docker run --rm -v ./mysite:/docs joshooaj/zensical build --clean

NOTICE

If you're using Docker Desktop on Windows, there's an issue with the way linux containers detect file changes when those changes are made from outside the container. Consider using a devcontainer for a better live editing experience if you're on Windows.

Docker Compose

Create a site if you don't have one already

# Create a new Zensical site in the subfolder "mysite"
docker run --rm -v ./mysite:/docs joshooaj/zensical new

Create compose.yml

services:
  zensical:
    image: joshooaj/zensical:latest
    ports:
      - "8000:8000"
    volumes:
      - ./mysite:/docs

Start it up

docker compose up -d

About

Zensical is a modern static site generator designed to simplify building and maintaining project documentation.

Topics

Resources

License

Contributing

Stars

Watchers

Forks