Skip to content

Fixes to llms.txt generation#237

Merged
svekars merged 1 commit intopytorch_sphinx_theme2from
add-llm-txt-generation
Mar 16, 2026
Merged

Fixes to llms.txt generation#237
svekars merged 1 commit intopytorch_sphinx_theme2from
add-llm-txt-generation

Conversation

@svekars
Copy link
Contributor

@svekars svekars commented Mar 16, 2026

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",
}

@netlify
Copy link

netlify bot commented Mar 16, 2026

Deploy Preview for pytorchsphinxtheme ready!

Name Link
🔨 Latest commit 2798949
🔍 Latest deploy log https://app.netlify.com/projects/pytorchsphinxtheme/deploys/69b850f8292a0e000844ba8f
😎 Deploy Preview https://deploy-preview-237--pytorchsphinxtheme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@meta-cla meta-cla bot added the cla signed label Mar 16, 2026
@svekars svekars merged commit d7272cd into pytorch_sphinx_theme2 Mar 16, 2026
7 checks passed
@svekars svekars mentioned this pull request Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants