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.0rc5.tar.gz (6.7 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.0rc5-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llms_txt_action-0.1.0rc5.tar.gz
  • Upload date:
  • Size: 6.7 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.0rc5.tar.gz
Algorithm Hash digest
SHA256 d812bf2cb1efd2230de604b9062cac66bc0e8de110b5aa0de9b78a2f2eba4109
MD5 f68f002786d75db5114510c10f8429ad
BLAKE2b-256 475217a27465a6b5721c680a0aeba9d3f2ee2badcaaf4f9328358ebe86c28121

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llms_txt_action-0.1.0rc5-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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.0rc5-py3-none-any.whl
Algorithm Hash digest
SHA256 2a6a39e7f50c9a4bc3a0396892c809d4c59add323f574c79d36e60a9f164a87a
MD5 0582c38c538f580808ce363ad63deb13
BLAKE2b-256 aa62380b66ba695067f565a13a75f858c808c0e7bb089d63847287dd80d84732

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