pypress
Serve a folder of Markdown files as a documentation site. No build step.
Install • Usage • Configuration • Development
pypress scans a folder of Markdown files, writes a small page index, starts a
local web server and opens the site in your browser. The .md files are never
converted to HTML on disk: the browser renders them with a bundled
markdown-it.
- A clean default theme: nav bar, sidebar, "On this page" outline, previous/next links and footer.
- Live reload: save a file and the open page updates.
- Search over titles and headings with ⌘K / Ctrl K.
- Light and dark mode.
- Markdown extras: frontmatter,
::: tip | info | warning | danger | detailscontainers, GitHub alerts (> [!NOTE]), code line numbers and{1,3-4}line highlights, Mermaid diagrams (```mermaid), and the layoutshome,docandpage. - One config file:
pypress.json, shaped like a VitePress config, sets the nav bar, sidebar, logo, social links, footer and extra CSS. pypress creates it if it is missing. - Works offline. All scripts, styles and fonts are vendored in the package.
Install
pypress needs Python 3.14 or newer. The package on PyPI is called
pypress-toolkit, and the command it installs is pypress:
uv tool install pypress-toolkit
To try it without installing:
uvx --from pypress-toolkit pypress docs
Usage
pypress docs
| Option | Default | Meaning |
|---|---|---|
DOCS_DIR |
. |
Folder with Markdown files. |
--host |
127.0.0.1 |
Interface to bind. |
--port |
8000 |
Port; the next free one is used if it is busy. |
--open / --no-open |
open | Open the browser. |
--watch / --no-watch |
watch | Live reload on file changes. |
--index-only |
off | Write the page index (and a missing pypress.json) and exit. |
--build OUT |
Write the site as static files to OUT and exit. |
|
--log-level |
info |
debug, info, warning or error. |
--version |
Print the version. |
index.md is the home page. Without it, the home page lists all pages. Each
other root page and each first level folder gets a link in the top bar; deeper
folders become groups in the sidebar.
Hidden files and folders, folders whose name starts with _, node_modules and
public are not read as pages. See docs/usage/cli.md.
pypress docs --build site writes a static copy of the site to site/. Its
links are relative, so it works on any web server, below any path, and when
opened from disk.
Configuration
pypress uses two files in the docs folder:
-
pypress.jsonis your site config, shaped like a VitePress config. When it is missing, pypress creates it with the site title and the nav and sidebar built from your folders. After that pypress never changes it:{ "title": "My Docs", "titleTemplate": ":title - My Docs", "styles": ["custom.css"], "themeConfig": { "logo": "/logo.svg", "nav": [ {"text": "Guide", "link": "/guide/", "activeMatch": "^/guide/"}, {"text": "More", "items": [{"text": "Changelog", "link": "/changelog"}]} ], "sidebar": { "/guide/": [{"text": "Basics", "items": [{"text": "Install", "link": "/guide/install"}]}] }, "socialLinks": [{"icon": "github", "link": "https://github.com/you/repo"}], "footer": {"message": "Released under the MIT License."} } }
New pages appear in a configured
navorsidebaronly after you add them. Remove those keys to let pypress build them from your folders again. Saving the file reloads open pages. -
.pypress/index.jsonis the page index: titles, order and headings of all pages. pypress writes it and parses only files whose size or modification time changed. It is a cache; add.pypress/to your.gitignore.
An old pypress.json that still holds the page list is converted once at start.
See docs/usage/config.md for details.
Development
task init # Python, dependencies, pre-commit hooks
task serve-docs # serve this project's docs with pypress
task test # pytest with coverage
task lint # ruff + ty
task vendor # re-download the pinned browser assets
node scripts/build_theme.mjs ../site/node_modules # rebuild the vendored theme CSS
The project docs in docs/ describe the CLI, the frontmatter keys, the config and index files and the architecture. Vendored assets and their licences are listed in pypress/static/vendor/VENDOR.md.
Security
pypress binds to 127.0.0.1 by default and only serves files inside the docs
folder. Markdown may contain raw HTML, so only serve folders you trust. See
SECURITY.md.
Branching
See BRANCHING.md for the repository branch naming policy.
Metadata
Release files for pypress-toolkit 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pypress_toolkit-1.0.2.tar.gz | 2.7 MB | Without provenance | Details for pypress_toolkit-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pypress_toolkit-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for pypress_toolkit-1.0.2-py3-none-any.whl |
Total release size: 5.5 MB
Release files / pypress_toolkit-1.0.2.tar.gz
| Download URL | pypress_toolkit-1.0.2.tar.gz |
|---|---|
| Size | 2.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c78eb9b7060cd8d0046bf1ab9c0d72579f66fb18be0259aa8ebe2a8472b8046f
|
|
BLAKE2b-256 checksum How to use checksums |
0b548b825a835710b433bf4f830a938b936736622eb2e3b4957c982306fbbf9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pypress_toolkit-1.0.2-py3-none-any.whl
| Download URL | pypress_toolkit-1.0.2-py3-none-any.whl |
|---|---|
| Size | 2.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a6cf8c5345bba67c1b77e71a3a032a19ae43b2719f1724c4ec542978d4db66d
|
|
BLAKE2b-256 checksum How to use checksums |
61b4998e8f92258106cc5a4e9df486883ea4fe09bc2076a1fcc3189844d3d407
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pypress-toolkit 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.