You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #237 from pytorch/add-llm-txt-generation
Fixes to llms.txt generation
Changes
Enabled by default - generates llms.txt automatically unless disabled or user provides their own
Spec compliant - includes H1 title, quote block description, H2 sections, and title format
Title deduplication - optional llm_deduplicate_titles to disambiguate duplicate titles (e.g., "GRU" → "GRU (torch.nn.GRU)")
Generic fallback - uses project name for description if llm_description not set
Configuration
html_theme_options = {
# Optional: custom description (defaults to "{project} documentation.")
"llm_description": "Your project description here.",
# Optional: disambiguate duplicate titles
"llm_deduplicate_titles": "true",
# Optional: disable generation
"llm_disabled": "true",
}
0 commit comments