Skip to main content

Publish multiple Sphinx documentation projects as one Jekyll site, PDF, or EPUB.

Project description

sphinxpress

sphinxpress publishes multiple independent Sphinx documentation projects as one documentation product: generated Jekyll/GitHub Pages pages, a combined EPUB, and a combined PDF.

It stays Sphinx-first. Each source project keeps its own conf.py and documentation tree. sphinxpress runs Sphinx builders, reads their output, and writes deterministic site and book artifacts for a larger publishing pipeline.

Release status: early alpha. Pin versions and validate generated output before using in production documentation pipelines.

Features

  • Build Jekyll pages from Sphinx JSON output.
  • Write per-project navigation data for site layouts.
  • Build aggregate EPUB and PDF projects from selected Sphinx docs projects.
  • Resolve release metadata from manual tags, git tags, or project metadata.
  • Optionally create a shared managed virtual environment for Sphinx and documentation dependencies.

Install

python -m pip install sphinxpress

For local development and documentation builds:

python -m pip install -e ".[dev,docs]"
python -m pytest -q

Minimal configuration

Create sphinxpress.toml at the repository root:

[site]
root = "site"
base_url = "https://docs.example.com"
tools_dir = "tools"
nav_data_dir = "_data/tool_nav"
layout = "tool-doc"
title = "Example Docs"

[build]
work_dir = ".sphinxpress"
sphinx_build = "sphinx-build"
fail_on_warning = true
keep_build_dir = false
parallel = "auto"

[book]
title = "Example Documentation"
author = "Example Team"
language = "en"
project_order = ["tool-a"]

[pdf]
builder = "latexpdf"
output = "dist/example-documentation.pdf"

[epub]
builder = "epub"
output = "dist/example-documentation.epub"

[release]
tag_prefix = "v"
release_url_template = "{repo_url}/releases/tag/{tag}"

[[projects]]
name = "tool-a"
title = "Tool A"
docs_root = "../tool-a/docs"
conf_dir = "../tool-a/docs"
root_doc = "index"
repo_url = "https://github.com/example/tool-a"
release_strategy = "manual"
release_tag = "v0.1.0"

Commands

sphinxpress check
sphinxpress list
sphinxpress build-site --all
sphinxpress build-epub --all
sphinxpress build-pdf --all
sphinxpress validate

build-pdf uses Sphinx's latexpdf builder and requires LaTeX system dependencies.

Managed build environment

sphinxpress can create one shared virtual environment for Sphinx and documentation dependencies:

[build.env]
enabled = true
scope = "shared"
python = "python3"
path = ".sphinxpress/venv"
upgrade_pip = true
packages = [
  "sphinx>=7",
  "myst-parser",
  "sphinx-rtd-theme",
  "-e", "../tool-a",
]

For v0.1, only scope = "shared" is supported. scope = "project" is reserved for a future release and is rejected with a configuration error.

Package path arguments after -e, --editable, -r, --requirement, -c, and --constraint are resolved relative to sphinxpress.toml.

Documentation

Build the project documentation with:

python -m pip install -e ".[dev,docs]"
python -m sphinx -b html docs docs/_build/html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinxpress-0.1.0.tar.gz (37.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinxpress-0.1.0-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file sphinxpress-0.1.0.tar.gz.

File metadata

  • Download URL: sphinxpress-0.1.0.tar.gz
  • Upload date:
  • Size: 37.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinxpress-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f36cf0f66972622ba8fed53b3eb0773edda29b96bac78500a42e5899286abf85
MD5 a8f8df895c23d941ffe21b5e23b04315
BLAKE2b-256 7a0e9f0ccb9a3ac68a8970eb06effc7358264aaa1a006e863202ea1b1f88a4c1

See more details on using hashes here.

File details

Details for the file sphinxpress-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sphinxpress-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinxpress-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84221127cf69bd8fb60b4d2a5d23226cb222547a259c909f073d3b74d01420b4
MD5 46031374b9fc4b15148ee045cab52bc8
BLAKE2b-256 7f7f3e6ec74d39546c61dcbe6064c7df16e17f249f3e319e27d60a9563e4454a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page