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.0rc6.tar.gz (6.8 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.0rc6-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llms_txt_action-0.1.0rc6.tar.gz
  • Upload date:
  • Size: 6.8 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.0rc6.tar.gz
Algorithm Hash digest
SHA256 3f2113c470bc68ab07012a884b26d7c044c7a88a7df18b101552a1436e0062a8
MD5 60df46a6998b18701f50f143057d22d2
BLAKE2b-256 99d58a1022d20b117e25b9a218e6bd9a132dcc43fd6d8bf7a945fd5d388390be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llms_txt_action-0.1.0rc6-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.0rc6-py3-none-any.whl
Algorithm Hash digest
SHA256 81c34af53518007282f0a56e71cf80bbb5104b447a17c45e8f974150c1839412
MD5 9397cf88ba30937e1c5833bfdd033f02
BLAKE2b-256 4429a2cb388363d4a761effe53efb4b8354c824d4f15c41304a432831d458f16

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