fix: empty parent pages sidebar issue#32
Conversation
|
@coderabbitai review |
✅ Action performedReview finished.
|
WalkthroughOrganized imports now write parent pages with children to slug directories containing Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/commands/import.js`:
- Around line 4311-4319: Update the content validation logic in
src/validators/content.js to accept generated intermediate container index.md
files when their directory contains descendant Markdown pages, even without a
direct child .md sibling. Preserve the existing validation behavior for
directories with no descendant content, and ensure the generated indexes from
the nestedContainers loop satisfy the validator contract.
- Around line 4287-4293: Update the segRename lookup and assignment in the
nested-container generation logic to key entries by both topDir and origPrefix.
Preserve reuse within the same top-level route while ensuring identical subpaths
under different top-level routes receive independent names and each route is
added to nestedContainers.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 885a254e-6061-4e9f-89a8-6ad6a968de80
📒 Files selected for processing (1)
src/commands/import.js
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
readmeio/ai(manual)readmeio/gitto(manual)readmeio/markdown(manual)readmeio/readme(manual)
31a95b9
into
minh/rm-17411-ai-importer-goswift-stoplight-ui-elements-footer-auth
ai-cli-runner PR: https://github.com/readmeio/ai-cli-runner/pull/83
🧰 Changes
{second-level-folder}-{page-slug}🧬 QA & Testing
https://www.loom.com/share/08818eb323c14052a827492f3f5c4310