Skip to content

Conversation

@justinretzolk
Copy link
Member

@justinretzolk justinretzolk commented Mar 11, 2025

This PR adds options to the validate command to check whether the subcategory defined in the YAML frontmatter is within a specified allowlist. This was inspired by YakDriver/tfproviderdocs, which is used by the AWS Provider and AzureRM provider to achieve this functionality.

While working on this, I noticed a bug here that led to the incorrect detection of guides files vs. resource/data-source files (relErr was nil whether files were in docs/resources or docs/guides). A fix for that bug is included in this PR.

@justinretzolk justinretzolk requested a review from a team as a code owner March 11, 2025 22:14
@rainkwan rainkwan mentioned this pull request Mar 16, 2025
@rainkwan
Copy link
Contributor

Hi @justinretzolk,

Thank you for your contribution. Everything looks good to me, I would just say to update the changelog under Bug Fixes and Enhancements for the work you did and we can get this merged.

@justinretzolk
Copy link
Member Author

Thanks @rainkwan! I got those changelog entries pushed (neat tool, by the way!)

Copy link
Contributor

@rainkwan rainkwan left a comment

Choose a reason for hiding this comment

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

Checks are passing and everything looks good, thank you again for the contribution.

@rainkwan rainkwan merged commit 5406ca4 into hashicorp:main Mar 19, 2025
8 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants