llms-full-html

GitHub Pages documentation

Project Description

LLMs-Full HTML Generator

This repository provides a Python script to generate llms-full.html files—a way to make website and project documentation more accessible to Large Language Models (LLMs).

Overview

llms-full.html is an HTML 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.

Key Features

Repository Structure

Usage Examples

Prerequisites

Installation

  1. Clone the repository: bash git clone <repository_url> ; cd llms-full-html
  2. Create a virtual environment using uv: bash python -m uv venv .venv
  3. Ensure tooling inside the venv: bash .venv/Scripts/python.exe -m ensurepip ; .venv/Scripts/python.exe -m pip install uv
  4. Install dependencies (runtime): bash .venv/Scripts/python.exe -m uv pip install -r requirements.txt For development and tests (fully pinned dev stack): bash .venv/Scripts/python.exe -m uv pip install -r requirements-dev.txt

Generate llms-full.html

.venv/Scripts/python.exe src/generate_llms_html.py

Notes on Authentication

The tool will first look for OPENROUTER_API_KEY in the environment. If not set, it falls back to reading ~/.api-openrouter. Without a key, summaries will be skipped (returning None).

License

This repository is licensed under the MIT-0 License.

Source Code

View the repository on GitHub.