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.0rc4.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.0rc4-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llms_txt_action-0.1.0rc4.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.0rc4.tar.gz
Algorithm Hash digest
SHA256 6f918ee8397e1e855db30d56103919c92ef623eb9f1ec5b13dfd8cb7acd752ba
MD5 480cb715819dd113d941ca387c8b9310
BLAKE2b-256 8b5b0a388db5eb5d422dd9d361d567eaf7871241d33d8a908028c312d4871ab5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llms_txt_action-0.1.0rc4-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.0rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 c597d67320e399a9667adefc1db7573064a690e95cc9cefff04da52f72207b3b
MD5 b8b46f4598f7f32517af864746a3e885
BLAKE2b-256 585806b383087a231286632e23d8042dfe3dc9ecd0dd429aea399ff303975fa7

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