Skip to content

About

The home of practicalpython.org

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Repository files navigation

practicalpython.org

The website and documentation space for the Practical Python Discord community.

Built with Zensical

Quick start

Prerequisites: uv. It fetches the right Python for you, so that's the only thing to install.

uv sync
uv run zensical serve

That serves the site at http://127.0.0.1:8000 and rebuilds when you save a file.

Checking your work before you push

uv run zensical build --strict

Broken internal links and dead anchors are build failures, not warnings. CI runs the same command, so if it passes here it passes there.

Install the git hooks once and you'll get that check automatically on every commit:

uv run --dev pre-commit install

To run every check by hand:

uv run --dev pre-commit run --all-files

Layout

docs/
├── index.md               landing page
├── CNAME                  custom domain, copied to the site root on build
├── robots.txt             Tells crawlers and bots where to go
├── stylesheets/           colour, font and hero overrides
├── static/                logo and images
├── getting-started/       the entry point for new members
├── python-tutorial/       the beginner tutorial
├── rules/                 server rules, code of conduct, moderation
├── resources/             learning material and setup guides
├── projects/
│   ├── our-projects/      software the community maintains
│   └── build-something/   project challenges for members
└── code-adventure/        landing page for the Code Adventure puzzles!
overrides/
└── main.html              theme override adding Open Graph and other SEO tags
scripts/
└── refresh_member_count.py  updates the Discord member count before a deploy build
zensical.toml              all site configuration, including the nav

Adding a page

  1. Create the Markdown file under the right folder in docs/.
  2. Add it to the nav list in zensical.toml.

Step 2 isn't optional. Zensical can derive navigation from the folder structure, but that sorts alphabetically and would put Projects ahead of Rules, so the nav is written out.

CONTRIBUTING.md covers the writing conventions, which matter more than the mechanics.

Deployment

Merging to main triggers .github/workflows/deploy.yml, which builds with --strict and publishes to GitHub Pages.

Pull requests run .github/workflows/ci.yml — the same pre-commit checks you get locally.

Dependencies

One direct dependency, zensical, pinned through uv.lock.

About

The home of practicalpython.org

Resources

Contributing

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages