GitHub Action to make documentation more accessible to LLMs.
Project description
LLM-TXT-ACTION
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
-
Clone and install:
# clone the repo poetry install
-
Run the crawler:
poetry run python src/llms_txt_action/main.py --docs-dir site/
Examples
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llms_txt_action-0.1.0rc2.tar.gz.
File metadata
- Download URL: llms_txt_action-0.1.0rc2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16cba429314f48f1afb0e6b8f6efbc7a6d98ad2f2e0790f93abdff74a9e56e01
|
|
| MD5 |
9b66802a3418578e4d4eaa57b20f7368
|
|
| BLAKE2b-256 |
09ae90b5bb1e7c809f94bf7b7b3f7dfcb844e109adcb081292b849a246e47f91
|
File details
Details for the file llms_txt_action-0.1.0rc2-py3-none-any.whl.
File metadata
- Download URL: llms_txt_action-0.1.0rc2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9052648aec3f9ac33911da8dcfc9e2521cffe8741c1110560950639c98505100
|
|
| MD5 |
5ab246821f3002b07356f63633ab946e
|
|
| BLAKE2b-256 |
74fe7da38ef1a333e0689987e0787e3312f9135c066a6a7caf137cdc78626551
|