Skip to content

docs: suggest reusing index.rst first sentence for llms_txt_description - #638

Merged
lengau merged 2 commits into
canonical:mainfrom
Shahzeb-DataEngineer:issue-603-llms-txt-description
Oct 20, 2026
Merged

lengau merged 2 commits into
canonical:mainfrom
Shahzeb-DataEngineer:issue-603-llms-txt-description

Conversation

@Shahzeb-DataEngineer

Copy link
Copy Markdown
Contributor

Description

The scaffold comment invited child repos to write a fresh blurb, which drifts from the home page over time. This updates the scaffold comment to direct authors to reuse the first sentence of instead, and notes that a second hand-authored description will drift.

This matches the preference from the craft-parts review referenced in the issue (craft-parts now carries the home page sentence with no TODO inviting a fresh blurb).

Comment-only change to the scaffold; no behaviour change.

Related issue

Closes #603

The scaffold comment invited child repos to write a fresh blurb for
llms_txt_description, which drifts from the home page over time. Point
authors at reusing the first sentence of docs/index.rst instead, matching
the preference from the craft-parts review.

Closes canonical#603

Signed-off-by: Shahzeb Ali <126076773+Shahzeb-DataEngineer@users.noreply.github.com>
@Shahzeb-DataEngineer
Shahzeb-DataEngineer requested review from a team and bepri as code owners October 17, 2026 20:40
Copilot AI lite review requested due to automatic review settings October 17, 2026 20:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Comment-only documentation change with no unresolved issues.

No open issues 🎉

What changed in this PR

Updates documentation scaffold guidance to reuse the first sentence from docs/index.rst for llms_txt_description, preventing description drift.

Changes:

  • Replaces the generic description prompt with reuse guidance.
  • Warns against maintaining a separate hand-authored description.
File Description
docs/​conf.py Updates llms_txt_description scaffold comments.

Review effort: Lite

@bepri bepri left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Shahzeb-DataEngineer :)

I think this sort of does both behaviors instead of preferring one or the other. This says "reuse the existing content", but also "you must mutate the existing content to fit this template."

How about instead suggesting a preference for the existing content, and providing the existing example as something to be used if there isn't any existing content to use in its place?

@Shahzeb-DataEngineer

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback, that makes sense. Updated the comment to prefer reusing the existing home page sentence as-is, with the example kept only as a fallback for when there is no suitable existing content. Let me know if this reads better now.

@bepri bepri left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's better, thanks!

@lengau lengau left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Shahzeb-DataEngineer

Copy link
Copy Markdown
Contributor Author

Thank you both for the reviews and approvals. Happy to make any further tweaks if needed.

@lengau
lengau merged commit 1b92e7b into canonical:main Oct 20, 2026
17 checks passed
@Shahzeb-DataEngineer
Shahzeb-DataEngineer deleted the issue-603-llms-txt-description branch October 20, 2026 19:58
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.

docs/conf.py: llms_txt_description example nudges authors away from reusing index.rst's first sentence

4 participants