Skip to content

fix: resolve shortcodes in website.title/description for llms.txt#14239

Merged
cscheid merged 1 commit intomainfrom
bugfix/14237
Mar 19, 2026
Merged

fix: resolve shortcodes in website.title/description for llms.txt#14239
cscheid merged 1 commit intomainfrom
bugfix/14237

Conversation

@gordonwoodhull
Copy link
Contributor

Summary

  • Shortcodes (e.g., {{< env VAR >}}) in website.title and website.description were not being resolved in llms.txt output
  • The existing metadata markdown pipeline in website-meta.ts now writes resolved values back into format.metadata during per-page rendering, which flow through ProjectOutputFile.format to the post-render phase where updateLlmsTxt reads them
  • Adds a smoke test with an env shortcode in website.title that verifies llms.txt contains the resolved value

Fixes #14237

Test plan

  • ./run-fast-tests.sh -k docs/smoke-all/website/llms-txt-shortcode/index.qmd passes
  • ./run-fast-tests.sh -k docs/smoke-all/website/llms-txt-drafts/index.qmd passes
  • Typechecks clean

The metadata markdown pipeline in website-meta.ts now writes resolved
(shortcode-expanded) site title and description back into
format.metadata during per-page rendering. These values flow through
ProjectOutputFile.format to the post-render phase, where updateLlmsTxt
reads them from outputFiles[0].format.metadata.

Also adds a smoke test with an env shortcode in website.title that
verifies llms.txt contains the resolved value.

Fixes #14237
@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented Mar 19, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@cscheid cscheid merged commit afa8006 into main Mar 19, 2026
51 checks passed
@cscheid cscheid deleted the bugfix/14237 branch March 19, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

llms.txt: shortcodes in website.title are not evaluated

3 participants