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.2.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.2-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

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

Hashes for semiliterate-0.0.2.tar.gz
Algorithm Hash digest
SHA256 37068eee9e3763e0a5f1abb314ddef1adb29fcaa80a1b61a965dde5fae6f34f4
MD5 756649d116c7398cffc269a9bcc818b9
BLAKE2b-256 840931bc22c006587ad9e9ecb9c9a648c9c4ddadfd309ad1feae053a18fb0c76

See more details on using hashes here.

Provenance

The following attestation bundles were made for semiliterate-0.0.2.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.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

Hashes for semiliterate-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 189e402bc4ce23f4867a993c9d1c396f17abf0c9ba7c45d29f16df6c1f71724b
MD5 eeb0238e931e40413e4ad39c07096572
BLAKE2b-256 7033606884a499c8a54fa78633a58ba5e49c1ea33b0d3198ff0eafb1f56219d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for semiliterate-0.0.2-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