Skip to main content

Break down docs, build up knowledge.

Project description

splitme-ai

Markdown Splitter: Modular Docs, Maximum Flexibility

SplitmeAI is a Python module that addresses challenges in managing large Markdown files, particularly when creating and maintaining structured static documentation websites such as Mkdocs.

Why Use SplitmeAI?

  • Section Splitting: Breaks down large Markdown files into smaller, manageable sections based on specified heading levels.
  • Filename Sanitization: Generates clean, unique filenames for each section, ensuring compatibility and readability.
  • Reference Link Management: Extracts and appends reference-style links used within each section.
  • Hierarchy Preservation: Maintains parent heading context within each split file.
  • Thematic Break Handling: Recognizes and handles line breaks (---, ***, ___) for intelligent content segmentation.
  • MkDocs Integration: Automatically generates an mkdocs.yml configuration file based on the split sections.
  • CLI Support: Provides a user-friendly Command-Line Interface for seamless operation.
---

Quick Start

Installation

Install from PyPI using any of the package managers listed below.

 pip

Use pip (recommended for most users):

pip install -U splitme-ai

 pipx

Install in an isolated environment with pipx:

 pipx install readmeai

 uv

For the fastest installation use uv:

 uv tool install splitme

Usage

Using the CLI

Example 1: Split a Markdown file into sections:

splitme-ai \
    --split.i examples/data/README-AI.md \
    --split.settings.o examples/output-h2

Example 2: Generate a mkdocs static documentation site config file:

splitme-ai \
    --split.i examples/data/README-AI.md \
    --split.settings.o examples/output-h2 \
    --split.settings.mkdocs

View the output for heading level 2 example here.

Example 3: Split on heading level 3:

splitme-ai \
    --split.i examples/data/README-AI.md \
    --split.settings.o examples/output-h3 \
    --split.settings.hl "###"

View the output for heading level 3 example here.

Example 4: Split on heading level 4:

splitme-ai \
    --split.i examples/data/README-AI.md \
    --split.settings.o examples/output-h4 \
    --split.settings.hl "####"

View the output for heading level 4 example here.

[!NOTE] The Official Documentation site with extensive examples and usage instructions is under development Stay tuned for updates!

Roadmap

  • Enhance CLI usability and user experience.
  • Integrate AI-powered content analysis and segmentation.
  • Add robust chunking and splitting algorithms for LLM applications.
  • Add support for additional static site generators.
  • Add support for additional input and output formats.

License

Copyright © 2024 splitme-ai.
Released under the MIT license.

---

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

splitme_ai-0.1.4.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

splitme_ai-0.1.4-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file splitme_ai-0.1.4.tar.gz.

File metadata

  • Download URL: splitme_ai-0.1.4.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for splitme_ai-0.1.4.tar.gz
Algorithm Hash digest
SHA256 d681c980780fa77341f9c5b34d0b236ddb8f9e793a82e3eb409b416b9b6e0022
MD5 69ef4edebef9fe17af7380af4f055adb
BLAKE2b-256 c29d84fe830010191522e5c402ca0ea414c3a5df0338551539701ea57e9c0c44

See more details on using hashes here.

Provenance

The following attestation bundles were made for splitme_ai-0.1.4.tar.gz:

Publisher: ci.yml on eli64s/splitme-ai

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

File details

Details for the file splitme_ai-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: splitme_ai-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for splitme_ai-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2d2fed7a8b94e5eeda61b82569b2de7813031b80eca0f36524f1b7eeb48cf3db
MD5 0f2df7345fb9293809883379d4d7db31
BLAKE2b-256 cdb357b2384832f184ee8acfbc194b68e2fe576e225df9d257827641395c88f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for splitme_ai-0.1.4-py3-none-any.whl:

Publisher: ci.yml on eli64s/splitme-ai

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