-
Notifications
You must be signed in to change notification settings - Fork 426
In-depth orphan files search script for housekeeping #2945
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
base: master
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces a new housekeeping script find-orphaned-files.js to identify orphaned documentation files that are not properly referenced. Unlike the existing find-orphan-pages.ts which focuses on sidebar validation for CI, this script performs a comprehensive search across the entire documentation structure to find files that can be safely deleted.
Changes:
- Added
find-orphaned-files.jsscript with comprehensive reference detection (sidebars, imports, markdown links, React components) - Added
find-orphaned-filesnpm script command
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| scripts/find-orphaned-files.js | New script to identify orphaned documentation files with support for partial file detection, autogenerated directories, and numeric prefix matching |
| package.json | Added npm script command to run the new orphaned files script |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
EmreDincoglu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
This PR provides
find-orphaned-files.js, a script to identify orphaned files for maintenance.Note: this new script has a different use than
find-orphan-pages.ts:find-orphaned-files.js: In-depth search for occasional files clean-upfind-orphan-pages.ts: Sidebar-only search for CI (will break if files are not well referenced.Description
Document type