chaptr
Turn separate Markdown chapters into one document, with shared variables and editable themes. Produce merged Markdown, styled HTML or PDF.
Usage
chaptr runs in your terminal. Install it once and use it across document projects. See installation instructions for the source checkout and GitHub release wheel options.
| Command | Purpose |
|---|---|
chaptr init [directory] |
Create an editable copy of the app's documentation |
chaptr build |
Build the current project; HTML is the default |
chaptr build --format pdf |
Generate PDF when renderer dependencies are available |
chaptr help |
Read the bundled command manual |
chaptr --help |
List commands; each command also supports --help |
chaptr themes list |
Browse community themes |
chaptr themes add THEME |
Install a theme into the current document project |
See the documentation for requirements, the user workflow, configuration, themes and current limitations. The documentation is itself a chaptr project, so you can try the tool on its own source:
chaptr build --config docs/document.yaml
Changelog
0.1.2
- Added bottom-right PDF page numbers starting after covers and title pages, with matching contents references and configurable footers.
- Added paper-size presets shared by HTML previews and PDFs, plus opt-in Polish single-letter word spacing through
language: pl. - Replaced modern and vintage with a neutral base theme, reusable columns and alignment utilities. Existing projects using those bundled names should select
baseor install a custom theme. - Added commands to browse, install and update community themes.
- Added MIT licensing to the repository and package metadata.
0.1.1
- Renamed the package and command to chaptr.
- Added publishing to PyPI through GitHub Actions Trusted Publishing.
0.1.0
- Project initialization with the app's documentation and overwrite protection.
- Ordered Markdown chapters and simple shared variables.
- Automatic table captions, linked footnotes and a table of contents.
- Optional title pages, covers and author sections.
- Pre-designed PDF covers with page-size validation and preserved contents links.
- Markdown and HTML output, with an optional WeasyPrint PDF renderer.
- Bundled themes, project-local overrides and additional stylesheets.
- Command help and a bundled usage manual.
PDF requires native libraries.
Planned: named document templates, including accessibility-oriented documents. Template selection is not available yet.
License
Distributed under the MIT License. See LICENSE.
Metadata
Release files for chaptr 0.1.2
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 |
|---|---|---|---|---|
| chaptr-0.1.2.tar.gz | 40.8 kB | With provenance | Details for chaptr-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chaptr-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for chaptr-0.1.2-py3-none-any.whl |
Total release size: 78.5 kB
Release files / chaptr-0.1.2.tar.gz
| Download URL | chaptr-0.1.2.tar.gz |
|---|---|
| Size | 40.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
988aa8c10bd36d89cb7889ad576042f9dede49d3bb47226ece762d4339585b1b
|
|
BLAKE2b-256 checksum How to use checksums |
1e3c757015eeae034fa64b3fdb88c1d5d31196261df519817a14385f447d00b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 10, 2026.
Transparency logRelease files / chaptr-0.1.2-py3-none-any.whl
| Download URL | chaptr-0.1.2-py3-none-any.whl |
|---|---|
| Size | 37.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f7de45e4774ef60c7ee27685e1ad20f57045a4f320db9b587f39c75518e5d59
|
|
BLAKE2b-256 checksum How to use checksums |
4ccb556d52722e9a26afb2aaa4d4458abb7c63bbfe7ebe85e631cd66b19c043a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 10, 2026.
Transparency logSecurity for chaptr 0.1.2
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 chaptr-0.1.2.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 Nov 10, 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.