-
Notifications
You must be signed in to change notification settings - Fork 2
fix: exporting pdf style #223
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
🦋 Changeset detectedLatest commit: b3ab859 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThis PR fixes PDF export styling by renaming selectors from Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (6)
🧰 Additional context used📓 Path-based instructions (3)**/*.{js,ts,tsx,jsx,json,yml,yaml,md}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{js,ts,tsx,jsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (5)📚 Learning: 2025-07-09T02:33:05.638ZApplied to files:
📚 Learning: 2025-10-30T06:51:00.220ZApplied to files:
📚 Learning: 2025-05-26T09:09:21.339ZApplied to files:
📚 Learning: 2025-12-15T10:50:06.727ZApplied to files:
📚 Learning: 2025-06-09T03:10:41.010ZApplied to files:
🔇 Additional comments (8)
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 |
Signed-off-by: JounQin <admin@1stg.me>
commit: |
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 fixes PDF export styling by updating CSS class names from rspress prefixes to rp prefixes and adds support for excluding specific elements from PDF outlines. The changes ensure proper styling during PDF export and allow filtering of table of contents items.
Key changes:
- Added
outlineExcludeSelectoroption to filter elements from PDF outlines - Updated CSS class selectors from
rspress-*torp-*to match current framework conventions - Fixed print media query styling to hide navigation and sidebars correctly
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| packages/export/src/html-export-pdf/core/printer.ts | Added outlineExcludeSelector property to printer options and configuration |
| packages/export/src/html-export-pdf/core/outline.ts | Implemented filtering logic to exclude elements matching the exclude selector from outlines |
| packages/doom/styles/global.scss | Updated CSS class names from rspress-* to rp-* and refined print media query styles |
| packages/doom/src/plugins/auto-toc/remark-auto-toc.ts | Changed class name from rspress-toc-exclude to rp-toc-exclude |
| packages/doom/src/cli/export.ts | Updated outline container selector and added exclude selector configuration |
| .changeset/red-spiders-wonder.md | Added changeset for patch release |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.