Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Throng Docs

Documentation site for the Throng platform, built with MkDocs and the Material theme. Dependencies are managed with uv.

Project layout

throng_docs/
├── docs/             # Markdown source for every page
│   └── index.md      # Home page
├── mkdocs.yml        # Site config (theme, nav, extensions)
├── pyproject.toml    # Python deps (managed by uv)
├── uv.lock           # Locked dep versions — commit this
└── site/             # Built HTML output (gitignored)

One-time setup

brew install uv          # if you don't already have it
uv sync                  # creates .venv/ and installs locked deps

uv sync reads pyproject.toml + uv.lock and produces a .venv/ with the exact versions everyone else is using. Run it after pulling changes that touch dependencies.

Day-to-day commands

All commands assume you're in the repo root. uv run <cmd> runs <cmd> inside the project's virtualenv without needing to activate it.

Task Command
Live preview at localhost:8000 uv run mkdocs serve
Preview on a different port uv run mkdocs serve -a 127.0.0.1:8001
Build static site into site/ uv run mkdocs build
Build with strict warnings uv run mkdocs build --strict
Deploy to GitHub Pages uv run mkdocs gh-deploy
List MkDocs subcommands uv run mkdocs --help

mkdocs serve watches docs/ and mkdocs.yml and auto-reloads the browser on every save — leave it running while you write.

Adding content

  • New page → create docs/some-page.md. It appears in the sidebar automatically. The first # Heading becomes the page title.
  • Subsection → create docs/guides/intro.md. The folder becomes a nav group; an optional docs/guides/index.md becomes that group's landing page.
  • Custom nav order → uncomment and populate the nav: block in mkdocs.yml. Without it, files are listed alphabetically.
  • Images / assets → put them in docs/ (e.g. docs/img/foo.png) and reference with relative paths: ![alt](img/foo.png).

Managing dependencies (uv)

Task Command
Add a package uv add <pkg>
Add a dev-only package uv add --dev <pkg>
Remove a package uv remove <pkg>
Upgrade everything to latest uv lock --upgrade && uv sync
Re-create venv from scratch rm -rf .venv && uv sync

Commit pyproject.toml and uv.lock after any of these. Never commit .venv/.

Deploying

Run uv run mkdocs gh-deploy to build and publish to the gh-pages branch. The live site updates within a minute or two.

Useful links

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors