MaatLog
MaatLog is a Sphinx extension that turns a documentation project into a static blog. Posts are ordinary reStructuredText or MyST Markdown documents with a small metadata schema. MaatLog adds archives, taxonomy navigation, Atom feeds, and an HTML Theme API on top of Sphinx’s public extension surface.
Requirements
Python 3.14+
Sphinx 9.1+
myst-parser 5.1+
Install
From a built distribution (wheel or sdist):
pip install maatlog
Or from a checkout with uv:
uv sync uv pip install -e .
Quick start
Enable the extension and (optionally) the bundled theme in conf.py:
extensions = ["maatlog"] html_theme = "maatlog-default" html_baseurl = "https://example.com/" # required when Atom feeds are enabled maatlog_timezone = "UTC" maatlog_tags = {"sphinx": "Sphinx", "python": "Python"} maatlog_categories = {"engineering": "Engineering"} maatlog_authors = {"alice": "Alice"}Write a reStructuredText post (field list before the title):
:maatlog-post: true :maatlog-published-at: 2026-08-01T09:00:00+09:00 :maatlog-slug: hello-maatlog :maatlog-tags: sphinx, python :maatlog-categories: engineering :maatlog-authors: alice :maatlog-excerpt: First post with MaatLog. Hello MaatLog ============= Body of the post…
Or an equivalent MyST Markdown post (YAML front matter):
--- maatlog-post: true maatlog-published-at: 2026-08-01T09:00:00+09:00 maatlog-slug: hello-maatlog maatlog-tags: [sphinx, python] maatlog-categories: [engineering] maatlog-authors: [alice] maatlog-excerpt: First post with MaatLog. --- # Hello MaatLog Body of the post…
Build HTML:
sphinx-build -b html sourcedir builddir
With the defaults above, MaatLog generates:
Post pages using the selected MaatLog theme
Archives under blog/ (configurable via maatlog_archive_docname)
Atom feeds under the archive root (when maatlog_generate_feeds is true)
Cross-reference roles such as :maatlog:post:, :maatlog:tag:, and friends
Rebuild notes
Most maatlog_* settings rebuild the Sphinx environment (env). Feed-related settings rebuild HTML outputs only (html). After changing taxonomy dictionaries, archive root, page size, timezone, or feed options, run a clean or full rebuild so archives and feeds stay consistent.
SOURCE_DATE_EPOCH (Unix seconds, UTC) freezes the build clock used for draft / scheduled / expired publication status. Prefer it for reproducible CI builds.
What MaatLog does not replace
MaatLog does not replace Sphinx document titles, toctree, search, autodoc, Pygments, or intersphinx. Ordinary documentation pages coexist with posts in the same project. Full HTML features (archives, Theme API validation, feeds, MaatLog HTML metadata) are guaranteed for the html and dirhtml builders only; other builders keep post body and role resolution where applicable.
Documentation
docs/authoring.rst — post metadata schema and examples
docs/configuration.rst — conf.py settings and defaults
docs/theme-api.rst — Theme API 1.0 contract and official themes
docs/builders.rst — builder matrix and static-site constraints
Development
Node.js 24 is required only for contributor-side JavaScript and CSS quality tooling. Installing and using the MaatLog Python package does not require Node.js.
Official HTML and CSS support follows the browserslist query in package.json. Long-tail browsers that still appear in defaults (Opera Mini, KaiOS 2.x, UC Browser, and QQ Browser) are out of scope.
Install both locked development environments and run the frontend checks:
uv sync --locked --all-groups npm ci npm run check
The individual frontend commands are:
npm run lint:js npm run format:check npm run typecheck:js npm run lint:css npm run format
The full verification profile runs browser-based accessibility tests, so install the Playwright browser once before running it. On a system that also needs the browser’s OS packages, run the same command with --with-deps (it uses sudo):
uv run playwright install chromium
The authoritative full repository verification remains:
./scripts/ci/verify.sh full
Verification profiles
scripts/ci/verify.sh <profile> is the single verification entry point. The profiles differ in what they cover, not only in how long they take:
- static
The static checks: ruff check, ruff format --check, pyright, and the frontend checks (npm ci and npm run check).
- quick
The same static checks, followed by pytest -m "not browser".
- full
The release gate: the static checks, the whole test suite including the browser-driven accessibility tests, then the distribution build (uv build, twine check) and the distribution tests.
- minimum / latest
The Sphinx compatibility matrix that CI runs. These swap Sphinx versions with uv pip install, so they rewrite the virtualenv.
static and quick never run uv pip install, so the virtualenv stays exactly as uv sync left it and both profiles can be repeated freely while developing. They also stop at the first failing static check, before the test suite starts. full remains the authoritative check.
Measured on an 8-core / 31 GB Dev Container (2026-09-11), with a warm uv sync and npm ci:
quick runs its tests in parallel (-n auto), so its wall time tracks the number of cores available.
profile |
wall time |
|---|---|
static |
~17 seconds |
quick |
~1.3-1.7 minutes |
full |
~12-16 minutes |
License and status
MaatLog MVP targets Sphinx-based static blogs. Development is still active and the published package has no known users. Until the project stabilizes, Theme API updates are breaking and do not keep older Theme API versions working. Public metadata keys, config names, roles, generated docname rules, and diagnostic codes remain compatibility-managed surfaces.
Metadata
Release files for maatlog 0.6.0
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 |
|---|---|---|---|---|
| maatlog-0.6.0.tar.gz | 169.7 kB | With provenance | Details for maatlog-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| maatlog-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for maatlog-0.6.0-py3-none-any.whl |
Total release size: 377.5 kB
Release files / maatlog-0.6.0.tar.gz
| Download URL | maatlog-0.6.0.tar.gz |
|---|---|
| Size | 169.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
777fdeda28c4ebaf6830327ffbb1386661fe4d4fb1f26e0b6bb90bdb60eec76f
|
|
BLAKE2b-256 checksum How to use checksums |
dcf2756ed46b58a227d0086b0c6a2a8d67745e8392b70ebdd6960bd0022c600c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logRelease files / maatlog-0.6.0-py3-none-any.whl
| Download URL | maatlog-0.6.0-py3-none-any.whl |
|---|---|
| Size | 207.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
182d86cab456465666e18afb47a9873d9f24062d05571dd072a23d9ae8bdc387
|
|
BLAKE2b-256 checksum How to use checksums |
8e81be7ee1efd6b75695b6538a87fd6aad114c79349d1d07002eeecdfc2a3af5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logSecurity for maatlog 0.6.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for maatlog-0.6.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logA 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.