semiliterate
semiliterate is a standalone extraction engine and CLI for building markdown
documentation from semiliterate source files. It preserves the extraction
behavior from mkdocs-simple-plugin without depending on MkDocs.
Install
pip install -e .
CLI
semiliterate build --source . --out .build-docs
Options:
--config PATH: load YAML config--source PATH: source tree root--out PATH: output tree--include-mode copy|symlink|skip: how included files are materialized--dry-run: scan and report without writing files-v,--verbose: enable info logging
Config
The YAML config is intentionally close to the previous plugin config:
folders:
- src
- examples
ignore:
- .git/**
- node_modules/**
- _site/**
include:
- "*.md"
- "*.png"
semiliterate:
- pattern: ".*"
terminate: "^\\W*md-ignore"
extract:
- start: "^\\s*\"\"\"\\W?md\\b"
stop: "^\\s*\"\"\"\\s*$"
If you want to keep the built-in defaults and add a few more file types,
use include_extra and ignore_extra:
include_extra:
- "*.csv"
- "*.webp"
ignore_extra:
- "_build/**"
include and ignore still replace the defaults if you set them directly.
Python API
from semiliterate import ExtractionPattern
from semiliterate import Semiliterate
from semiliterate import build_docs
build_docs(source=".", out=".build-docs")
Useful exports:
SemiliterateExtractionPatternSimpleScannerbuild_docsload_config
Compatibility Notes
- The extraction regexes and inline parameter behavior are carried over
directly from
mkdocs-simple-plugin. .mkdocsignore, include matching, hidden-file handling, and destination file naming follow the original implementation.- This package does not depend on MkDocs and does not include any plugin or site-generator integration.
Example
Given a source file:
"""md
# Title
Some docs.
"""
Running:
semiliterate build --source . --out .build-docs
creates:
.build-docs/<source-file-basename>.md
Metadata
Release files for semiliterate 0.2.0
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 | |
|---|---|---|---|---|
| semiliterate-0.2.0.tar.gz | 15.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| semiliterate-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.3 kB
Release files / semiliterate-0.2.0.tar.gz
| Download URL | semiliterate-0.2.0.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
330ba2ee592dd66328446157fad9e320d91f64f7ce5e892f6e9dd7e5da673b3e
|
|
BLAKE2b-256 checksum How to use checksums |
700916472fc517833a6974c58beb71a849cdc4168186642b630f8fcf45623f63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 Jul 24, 2026.
Transparency logRelease files / semiliterate-0.2.0-py3-none-any.whl
| Download URL | semiliterate-0.2.0-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb49209fcdd2b05aa92156461cba4e7b5b300d5e91c225507d0fab746994462c
|
|
BLAKE2b-256 checksum How to use checksums |
ce2278a60cfbd38d7aafed9c47aee8793c84d24f1c7d65f3bd67623b19a7eb0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.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 Jul 24, 2026.
Transparency logSecurity for semiliterate 0.2.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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for semiliterate-0.2.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 Jul 24, 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.