GitHub Pages documentation
This repository provides a set of Python scripts to generate and work with llms-full.txt files—a proposed standard for making website and project documentation more accessible to Large Language Models (LLMs).
llms-full.txt is a Markdown file that aggregates complete documentation (including code examples) into one file for easy ingestion by LLMs. It complements traditional standards like sitemap.xml and robots.txt by focusing on content accessibility for AI models.
llms-full.txt from a given directory.python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
python -m uv venv .venv
.venv/Scripts/python.exe -m pip install -e .
Create a config.yaml file in the project root to customize file extensions and settings:
file_extensions:
- '.py'
- '.js'
# Add or remove extensions as needed
exclude_patterns:
- '*.log'
- '__pycache__'
output:
default_llms_file: 'llms-full.txt'
llms-full.txtpython src/generate_llms.py /path/to/directory
python src/generate_llms.py /path/to/directory -o custom-output.txt
python src/generate_toc.py input.md
python src/generate_toc.py input.md -o custom-toc.md
python src/count_lines_of_code.py /path/to/directory
python src/count_chars_of_code.py /path/to/directory
All commands now support command-line arguments and show progress indicators for large directories.
This repository is licensed under the MIT-0 License.
View the repository on GitHub.