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 Python static checks (ruff check, ruff format --check and pyright; the frontend npm pair runs only in static and full), then a single parallel run covering every non-browser test (pytest -n auto --dist loadgroup -m "not browser"). The distribution tests share that run: xdist_group keeps them on one worker, whose session fixture builds the archives once.
- full
The release gate: static checks, non-browser/non-distribution tests with -n auto --dist loadgroup, browser/non-distribution tests with -n 2 --dist loadscope, then one distribution build (uv build) and one serial distribution test run (including twine check). These stages run in sequence. Browser tests include accessibility checks.
- 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.
full defaults to two browser workers. Set VERIFY_BROWSER_WORKERS to an integer from 1 to 4 to override this; browser tests never use -n auto. The worker limit does not affect the non-browser or distribution stages:
VERIFY_BROWSER_WORKERS=1 ./scripts/ci/verify.sh full
Test counts change as coverage evolves. Collect the current selection instead of relying on a fixed count:
uv run --no-sync pytest tests --collect-only -q uv run --no-sync pytest tests --collect-only -q -m 'not browser and not distribution' uv run --no-sync pytest tests --collect-only -q -m 'browser and not distribution' uv run --no-sync pytest tests --collect-only -q -m distribution
Wall time depends on CPU capacity, dependencies, cache state and the selected revision. Compare the entire script on identical inputs and environment conditions. Once log initialization succeeds, the script prints its log path and records its final EXIT= status. Use a separate VERIFY_LOG_DIR for each measurement to preserve the logs.
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.1
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.1.tar.gz | 176.5 kB | With provenance | Details for maatlog-0.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| maatlog-0.6.1-py3-none-any.whl | Python 3 | none | any | Details for maatlog-0.6.1-py3-none-any.whl |
Total release size: 385.5 kB
Release files / maatlog-0.6.1.tar.gz
| Download URL | maatlog-0.6.1.tar.gz |
|---|---|
| Size | 176.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79f51d98d991d7c3f0365675890d6d0ba9b6f4a5699a23cc85530669ae033238
|
|
BLAKE2b-256 checksum How to use checksums |
4362f0b42a8f96dd0eb1bebb1e75e20005766e3af44d4bb8bd25cd2ace20d37b
|
| 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 Oct 18, 2026.
Transparency logRelease files / maatlog-0.6.1-py3-none-any.whl
| Download URL | maatlog-0.6.1-py3-none-any.whl |
|---|---|
| Size | 209.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aec030ab5eff0b9b93174c826fed077c6d1f5ea8728ef930527587144abdfa9d
|
|
BLAKE2b-256 checksum How to use checksums |
0591f8851771a1a103399703837832cf54fb4603e98f8e4ad9c96bb86fdcec8b
|
| 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 Oct 18, 2026.
Transparency logSecurity for maatlog 0.6.1
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.1.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 Oct 18, 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.