Skip to main content

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:

  • Semiliterate
  • ExtractionPattern
  • SimpleScanner
  • build_docs
  • load_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


Download files

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

Source Distribution

semiliterate-0.0.1.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

semiliterate-0.0.1-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file semiliterate-0.0.1.tar.gz.

File metadata

  • Download URL: semiliterate-0.0.1.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

Hashes for semiliterate-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e32e7f263f66633f256a9873096830ffdce4ae80ed89b300c795790812e1deff
MD5 a19387e6afc366e819c93bce03292064
BLAKE2b-256 5885a623447c398443f3a61d2a58bd3dc5224d71f7564c7b836f134fe0879c92

See more details on using hashes here.

Provenance

The following attestation bundles were made for semiliterate-0.0.1.tar.gz:

Publisher: release.yml on PrimerPages/semiliterate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file semiliterate-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: semiliterate-0.0.1-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

Hashes for semiliterate-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 40d4e6d9a57db3a55811d94bf1e8da1883de05bd53492bef0ac2c7970d14653e
MD5 50546851e9fe48d391ce1f34aa24297a
BLAKE2b-256 2bf511c599542a2f0121a978083a5b29dbeadc795c2bd5c57f4e1ee2b4c820c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for semiliterate-0.0.1-py3-none-any.whl:

Publisher: release.yml on PrimerPages/semiliterate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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