-
Notifications
You must be signed in to change notification settings - Fork 29
Fix KB article references after folder reorganization revert #346
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
Conversation
…zation revert After reverting the KB folder reorganization (PR #336), 169 KB articles had broken references: - Image paths using incorrect relative depth (../../images/, ../../../images/) - Cross-references pointing to non-existent subdirectory paths - Missing ./ prefix on image paths Fixed all three patterns: 1. Normalized all image paths to ./images/ format (relative to article location) 2. Removed subdirectories from KB cross-references (/docs/kb/product/file format) 3. Added ./ prefix to bare images/ references Affected files by product: - auditor: 51 files - privilegesecure: 36 files - accessanalyzer: 30 files - directorymanager: 14 files - endpointprotector: 14 files - dataclassification: 12 files - threatmanager: 7 files - threatprevention: 4 files - 1secure: 2 files - general: 1 file All KB articles now use consistent, working reference formats compatible with the root-level folder structure. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Pull Request Review: Fix KB article references after folder reorganization revertSummaryThis PR systematically fixes 376+ broken references across 169 KB articles following the revert of PR #336. The changes address three critical categories of broken references that prevented successful builds. Code Quality & Implementation ✅Strengths:
Code Quality Score: 9/10
Verification Results ✅I verified the following:
Potential Issues & Recommendations
|
Changed absolute path /docs/kb/accessanalyzer/images/ to relative path ./images/ to resolve build error. Absolute paths don't work for images in Docusaurus (they only work for markdown links). This file was missed in PR #346 because the PR was merged before this fix was pushed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Summary
After reverting the KB folder reorganization (PR #336 via PR #345), the build failed with 376+ broken references across KB articles. This PR fixes all three types of errors:
Errors Fixed:
Incorrect multi-level image paths (131 files)
../../images/→./images/../../../images/→./images/Broken cross-references with subdirectories (58 links)
/docs/kb/product/subdir/file.md→/docs/kb/product/fileMissing ./ prefix on image paths (187 files)
images/→./images/Files Changed:
Implementation:
Created Python script to systematically fix all reference patterns:
./images/format (Docusaurus webpack requirement)/docs/kb/product/filenameformatTesting:
✅ Build compiles successfully with
npm run start✅ Client (Rspack 1.4.10) compiled successfully
✅ All image references resolve correctly
✅ All cross-references work
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com