Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bot] Ignore includes in docpaths #336

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

ptgott
Copy link
Contributor

@ptgott ptgott commented Feb 25, 2025

The docpaths workflow currently blocks pull requests that rename or delete partials, which is not intended: the docs engine does not generate routes for partials.

This change skips redirect checking for any file path that includes the /includes/ segment. This follows the logic of the docs engine, which checks whether a page path includes the /includes/ segment and, if not, moves it into the directory that Docusaurus uses to generate page routes.

The docpaths workflow currently blocks pull requests that rename or
delete partials, which is not intended: the docs engine does not
generate routes for partials.

This change skips redirect checking for any file path that includes the
`/includes/` segment. This follows the logic of the docs engine, which
checks whether a page path includes the `/includes/` segment and, if
not, moves it into the directory that Docusaurus uses to generate page
routes.
@ptgott ptgott requested a review from a team as a code owner February 25, 2025 16:55
@fheinecke fheinecke merged commit 0134753 into main Feb 25, 2025
8 checks passed
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.

4 participants