Skip to content

llms-txt laundry list #14062

Closed
Closed

Description

@cwickham

@cscheid

Empty index.llms.md

index.llms.md, generated from index.qmd, at the top-level of quarto-web is empty

Links with anchors aren't converted

Links with anchors aren't converted to point at .llms.md files. E.g. index.qmd:

---
title: "llms"
---

[Me](about.qmd#me)

The link in index.llms.md is [Me](about.qmd#me) and should be [Me](about.llms.md#me)

Do better with tabsets

tabsets.qmd:

::: {.panel-tabset}

## First

First content

## Second

Second content

:::

The tabset headings are separated from their contents in tabsets.llms.md:

- [First]()
- [Second]()

First content

Second content

Breadcrumbs shouldn't be included

E.g. add a sidebar in _quarto.yml:

website:
  title: "llms"
  llms-txt: true
  sidebar:
    contents:
      - section: Info
        contents: 
          - about.qmd

Then in about.llms.md:

1.  [Info](./about.llms.md)
2.  [About](./about.llms.md)

# About

About this site

Code annotation isn't great

index.qmd:

```r
library(tidyverse) #<1>
?ggplot #<2>
```
1. First annotation
2. Second annotation

Generates index.llms.md:

``` r
1library(tidyverse)
2?ggplot
```

1  
First annotation

2  
Second annotation

Conditional content for llms-txt

We talked about how it would be useful to have:

::: {.content-visible when-format="llms-txt"}
Will only appear in `.llms.md`
:::

Activity

  1. added
    enhancement
    websites
    on Feb 18, 2026
  2. self-assigned this
    on Feb 19, 2026
  3. added this to the v1.9 milestone on Feb 19, 2026
  4. cscheid commented on Feb 19, 2026

    @cscheid
    Member

    I know I was the one who proposed conditional content for llms-txt, but I now don't think we can do it cleanly for 1.9. The problem is that our pipeline starts from the HTML file (for good reasons), but that means that if we want the llms.lua filter to see content, then it needs to exist in the .html output. That would require restructuring our rendering pipeline a lot: we'd have to add the conditional content to the HTML file, run the llms.txt processing, and then have an additional post-processing step that removes the conditional content from the HTML.

    EDIT: We figured out a way to do conditional content cleanly as well.

  5. cscheid commented on Feb 20, 2026

    @cscheid
    Member

    Ok, I merged #14067 which addresses everything here except the index bug.

  6. added
    bug
    on Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugenhancementwebsites

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions