Skip to content

Conversation

@xzl01
Copy link
Contributor

@xzl01 xzl01 commented Jan 13, 2026

Description of changes

xzl01 added 2 commits January 13, 2026 17:02
- Add check-markdown-filename hook to validate markdown file naming
  - Reject files containing underscores (except those starting with _)
  - Provide helpful error messages with renaming examples
- Update standardize-doc.md workflow documentation
  - Add requirement for download.md placement in top-level directory
  - Specify download.md should have sidebar_position: 99
@xzl01 xzl01 requested a review from a team as a code owner January 13, 2026 09:15
Copy link
Contributor

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

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

💡 To request another review, post a new comment with "/windsurf-review".

Comment on lines +125 to +127
if [[ "$filename" =~ ^_ ]]; then
continue
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

The script skips files that start with an underscore (if [[ "$filename" =~ ^_ ]]; then continue; fi), but it's not clear why this exception exists. Consider adding a comment explaining why files starting with underscores are allowed, especially since the hook's purpose is to enforce hyphen usage instead of underscores.

@xzl01 xzl01 changed the title Copilot docs: add pre-commit hook to enforce hyphen-based markdown filenames Jan 13, 2026
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