Skip to main content

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

  1. 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"}
  2. 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…
  3. 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…
  4. 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.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maatlog 0.5.0
File Size Uploaded Provenance Actions
maatlog-0.5.0.tar.gz 137.7 kB With provenance Details for maatlog-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for maatlog 0.5.0
File Interpreter ABI Platform Actions
maatlog-0.5.0-py3-none-any.whl Python 3 none any Details for maatlog-0.5.0-py3-none-any.whl

Total release size: 308.3 kB

Release files / maatlog-0.5.0.tar.gz

Download URL maatlog-0.5.0.tar.gz
Size 137.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e8220ff08bd09645a5ca8fce66e727836123656b2d52701c56038dac79999b37
BLAKE2b-256 checksum
How to use checksums
49973679c58c254f72ddcac3da8f11fc3a74332cdc026b1e0bccd179c51ad7c2
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 13, 2026.

Transparency log

Release files / maatlog-0.5.0-py3-none-any.whl

Download URL maatlog-0.5.0-py3-none-any.whl
Size 170.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c66f3bc4959730610025990767c81ca24777229ad6d29cb2535a8a73f11e1c68
BLAKE2b-256 checksum
How to use checksums
ccf7e09e5f8d8fc1d3d768db7b1a71827ce656cb57bbe2772e206576395002df
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 13, 2026.

Transparency log

Security for maatlog 0.5.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.

Select from 2 files

Attestation for maatlog-0.5.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 13, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page