Skip to content

Exclude unlisted pages from llms.txt#31

Open
birosrichard wants to merge 1 commit intosignalwire:mainfrom
birosrichard:fix/exclude-unlisted-pages-from-llms-txt
Open

Exclude unlisted pages from llms.txt#31
birosrichard wants to merge 1 commit intosignalwire:mainfrom
birosrichard:fix/exclude-unlisted-pages-from-llms-txt

Conversation

@birosrichard
Copy link
Copy Markdown

Description

Pages with unlisted: true in their frontmatter are intentionally hidden from Docusaurus navigation and search, but the plugin was including them in llms.txt and llms-full.txt regardless. This adds a check in shouldIncludeRoute to skip any route where route.props?.unlisted is truthy.

Type of Change

  • Bug fix

Testing

  • Added Jest test file

Additional Notes

Docusaurus sets unlisted: true on the route props for pages with the matching frontmatter. The fix follows the same pattern as the existing categoryGeneratedIndex check in shouldIncludeRoute.

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.

1 participant