Preview

Start local MkDocs preview server to view training material changes. Use when editing documentation, checking formatting, or testing how content renders before committing.

nextflow-io 5f71f85 1.3 KB Updated

File contents

Start the local MkDocs preview server to view changes to training materials.

See ../shared/repo-conventions.md for directory structure.

First, check if a server is already running:

docker ps --filter "ancestor=ghcr.io/nextflow-io/training-mkdocs:latest" --format "{{.ID}}"
  • If a container ID is returned, the server is already running at http://127.0.0.1:8000/
  • If no output, proceed to start a new server

Start the server using Docker (recommended):

docker run --rm -d -p 8000:8000 -v ${PWD}:/docs -w /docs/docs/en ghcr.io/nextflow-io/training-mkdocs:latest

Alternative - using uv:

uv run _scripts/docs.py serve

After starting the server:

Common issues:

  • If port 8000 is busy, use /stop-preview to stop other servers
  • If changes don't appear, check for markdown syntax errors in the console

nextflow-io/training/tree/main/.claude/skills/preview commit 5f71f8556b

Frequently asked questions

npx skillmds@latest add nextflow-io/preview