Skip to main content

DocFlux MkDocs

DocFlux MkDocs is a MkDocs plugin that exports documentation to DOCX and PDF with one configuration surface.

Status: early MVP scaffold. The current implementation focuses on a reliable single-file export path with:

  • Pandoc DOCX export.
  • Pandoc HTML + headless Chrome PDF export.
  • Optional Mermaid pre-render (mmdc) into PNG for DOCX/PDF compatibility.

Goals

  • Provide first-class DOCX export for MkDocs projects.
  • Provide a pragmatic PDF export path in the same plugin.
  • Keep configuration simple and reproducible in CI.

License

This project is licensed under Apache-2.0. See LICENSE.

Installation (development)

python -m venv .venv
source .venv/bin/activate
pip install -e .[dev]

Pandoc is required at runtime for the MVP exporter.

MkDocs configuration

plugins:
  - search
  - docflux-mkdocs:
      formats: [docx, pdf]
      output_dir: exports
      filename: project-docs
      single_file: true
      command_timeout_seconds: 300
      pandoc_path: pandoc
      toc: true
      toc_depth: 3
      docx_reference_doc: templates/reference.docx
      docx_extra_args: []
      pdf_strategy: chrome
      pdf_engine: xelatex
      pdf_css: scripts/pdf-style.css
      chrome_path: google-chrome
      chrome_extra_args: []
      mermaid_mode: pre_render
      mermaid_renderer: mmdc
      mmdc_path: mmdc
      mermaid_kroki_url: https://kroki.io
      mermaid_background: white
      mermaid_width: 1600
      mermaid_timeout_seconds: 45
      mermaid_fail_on_error: false
      mermaid_chrome_path: /usr/bin/google-chrome
      mermaid_extra_args: []
      pandoc_extra_args: []
      pdf_extra_args: []

Legacy alias: mkdocs-export is still available for backward compatibility.

Notes on PDF strategies

  • pdf_strategy: chrome is recommended when no LaTeX engine is installed.
  • pdf_strategy: pandoc uses Pandoc PDF conversion directly and usually requires a LaTeX engine (xelatex, pdflatex, etc.).

Notes on Mermaid

  • mermaid_mode: pre_render replaces fenced Mermaid blocks with PNG images before export.
  • mermaid_renderer: mmdc uses Mermaid CLI (local tool, may require Chromium).
  • mermaid_renderer: kroki renders Mermaid diagrams through a Kroki server and avoids local Chrome/Chromium.
  • If Mermaid rendering fails and mermaid_fail_on_error: false, the plugin keeps the original Mermaid code block and continues.

Development

pytest

Planning docs

  • Product spec: docs/spec/product-spec.md
  • Architecture: docs/spec/architecture.md
  • Roadmap: docs/spec/roadmap.md
  • Open questions: docs/spec/open-questions.md
  • Fixture report: docs/spec/fixture-report-2026-02-16.md

Metadata

Release files for docflux-mkdocs 0.1.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 docflux-mkdocs 0.1.0
File Size Uploaded Provenance Actions
docflux_mkdocs-0.1.0.tar.gz 18.0 kB Without provenance Details for docflux_mkdocs-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for docflux-mkdocs 0.1.0
File Interpreter ABI Platform Actions
docflux_mkdocs-0.1.0-py3-none-any.whl Python 3 none any Details for docflux_mkdocs-0.1.0-py3-none-any.whl

Total release size: 32.3 kB

Release files / docflux_mkdocs-0.1.0.tar.gz

Download URL docflux_mkdocs-0.1.0.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
94d6de894b3db97ae75f04a7beac45c3de2f13ad8c38a463549de4fed924de8f
BLAKE2b-256 checksum
How to use checksums
350d5954b9d99e03362e7e75246ff137c44420ed42a0111d77c3161dd7c4fa54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / docflux_mkdocs-0.1.0-py3-none-any.whl

Download URL docflux_mkdocs-0.1.0-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0348025541d0ae34ca796eebc8925758aa7c01b09d66fd361cf2327d5f5cfad5
BLAKE2b-256 checksum
How to use checksums
27f5d7ac8f461b8ed93c832ccbebba644bb83184dd83e258c596d9222a08ac8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for docflux-mkdocs 0.1.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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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