94a82dc68b19bcd59226d3238b2f292e2e5749c0
Sphinx llms-full.txt Extension
A Sphinx extension that creates a single combined documentation llms-full.txt file, written in reStructuredText.
Installation
pip install sphinx-llms-txt
Usage
- Add the extension to your Sphinx configuration (
conf.py):
extensions = [
'sphinx_llms_txt',
]
Configuration Options
llms_txt_filename
- Type: string
- Default:
'llms-full.txt' - Description: Name of the output file
llms_txt_verbose
- Type: boolean
- Default:
False - Description: Whether to include a summary in the build output
llms_txt_max_lines
- Type: integer or
None - Default:
None(no limit) - Description: Sets a maximum line count for
llms_txt_filename. If exceeded, the file is skipped and a warning is shown, but the build still completes.
llms_txt_directives
- Type: list of strings
- Default:
[](empty list) - Description: List of custom directive names to process for path resolution.
Features
- Automatically add content from
includedirectives - Resolves relative paths in directives like
imageandfigureto use full paths- Ability to add list of custom directives with
llms_txt_directives - Optionally, prepend a base URL using Sphinx's
html_baseurl
- Ability to add list of custom directives with
License
MIT License - see LICENSE file for details.
Languages
Python
99.7%
CMake
0.3%