Skip to main content

GitHub Action to make documentation more accessible to LLMs.

Project description

LLM-TXT-ACTION

GitHub release (latest by date) GitHub Workflow Status License

Convert documentation websites into LLM-ready text files. Perfect for training or fine-tuning language models on your documentation. For more details read: https://llmstxt.org/

Features

  • 📄 Content Processing: Generate LLM-ready text files from popular document frameworks such as MKDocs, Sphinx and more.
  • 💾 Multiple Output Formats: Save content in HTML, Markdown, and metadata formats

Quick Start

Add this to your GitHub workflow:

    steps:
      - name: Generate llms.txt
        uses: demodrive-ai/llm-txt-action@v0.1.0
        with:
          generate_md_files: true
          # any other inputs you would like to set.

Input Parameters

Parameter Required Default Description
docs_dir No site/ Documentation output directory
generate_llms_txt No true Whether to generate LLMS.txt file
generate_llms_full_txt No true Whether to generate llms_full.txt file
generate_md_files No true Generate md files for each html file
llms_txt_name No llms.txt Name of the llms.txt output file
llms_full_txt_name No llms_full.txt Name of the llms_full.txt output file
poetry_version No latest Poetry version to use (or 'latest')
push_to_git No false Whether to push generated files to git
push_to_artifacts No false Whether to push generated files to artifacts

Local Development

  1. Clone and install:

    # clone the repo
    poetry install
    
  2. Run the crawler:

    poetry run python src/llms_txt_action/main.py --docs-dir site/
    

Examples

  1. Deploy MkDocs website to Github Pages.
      - name: Generate static files
        run : mkdocs build

      - name: Generate llms.txt, md files.
        uses: demodrive-ai/llm-txt-action@v0.1.0
        with:
          generate_md_files: true

      - name: Deploy to Github
        run : mkdocs gh-deploy --dirty

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

llms_txt_action-0.1.0rc3.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

llms_txt_action-0.1.0rc3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file llms_txt_action-0.1.0rc3.tar.gz.

File metadata

  • Download URL: llms_txt_action-0.1.0rc3.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.7 Darwin/22.6.0

File hashes

Hashes for llms_txt_action-0.1.0rc3.tar.gz
Algorithm Hash digest
SHA256 832433020d55d8774a785a72280d70c917e50eb84ae48ba94e0d706857bbc7a1
MD5 44309a3397b604f8ae104d32793fe492
BLAKE2b-256 25a7421590b318bce89c885ecddc7dfcc89f83dc350a1c424a640a4f5d3ce5f7

See more details on using hashes here.

File details

Details for the file llms_txt_action-0.1.0rc3-py3-none-any.whl.

File metadata

  • Download URL: llms_txt_action-0.1.0rc3-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.7 Darwin/22.6.0

File hashes

Hashes for llms_txt_action-0.1.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 4a9a79c92e12fa220be4bbd8d4f7da19541c36e83d0f1ddba303f75de8d37a0b
MD5 061aaeabe79f0d49bb17d4ee61853c34
BLAKE2b-256 5c403b145e1d422bf60a19290c62accfb89d742e63b8ec2e673f8f2c5d7f1d42

See more details on using hashes here.

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