Standalone semiliterate extraction engine and CLI.
Project description
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*$"
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file semiliterate-0.0.2.tar.gz.
File metadata
- Download URL: semiliterate-0.0.2.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37068eee9e3763e0a5f1abb314ddef1adb29fcaa80a1b61a965dde5fae6f34f4
|
|
| MD5 |
756649d116c7398cffc269a9bcc818b9
|
|
| BLAKE2b-256 |
840931bc22c006587ad9e9ecb9c9a648c9c4ddadfd309ad1feae053a18fb0c76
|
Provenance
The following attestation bundles were made for semiliterate-0.0.2.tar.gz:
Publisher:
release.yml on PrimerPages/semiliterate
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
semiliterate-0.0.2.tar.gz -
Subject digest:
37068eee9e3763e0a5f1abb314ddef1adb29fcaa80a1b61a965dde5fae6f34f4 - Sigstore transparency entry: 1509011500
- Sigstore integration time:
-
Permalink:
PrimerPages/semiliterate@5917ddc6d81af959fb159cebc314d91a03e591e8 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/PrimerPages
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5917ddc6d81af959fb159cebc314d91a03e591e8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file semiliterate-0.0.2-py3-none-any.whl.
File metadata
- Download URL: semiliterate-0.0.2-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
189e402bc4ce23f4867a993c9d1c396f17abf0c9ba7c45d29f16df6c1f71724b
|
|
| MD5 |
eeb0238e931e40413e4ad39c07096572
|
|
| BLAKE2b-256 |
7033606884a499c8a54fa78633a58ba5e49c1ea33b0d3198ff0eafb1f56219d1
|
Provenance
The following attestation bundles were made for semiliterate-0.0.2-py3-none-any.whl:
Publisher:
release.yml on PrimerPages/semiliterate
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
semiliterate-0.0.2-py3-none-any.whl -
Subject digest:
189e402bc4ce23f4867a993c9d1c396f17abf0c9ba7c45d29f16df6c1f71724b - Sigstore transparency entry: 1509011800
- Sigstore integration time:
-
Permalink:
PrimerPages/semiliterate@5917ddc6d81af959fb159cebc314d91a03e591e8 -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/PrimerPages
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5917ddc6d81af959fb159cebc314d91a03e591e8 -
Trigger Event:
release
-
Statement type: