Skip to content

[pull] main from dair-ai:main#68

Merged
pull[bot] merged 4 commits into
EntertainmentDB:mainfrom
dair-ai:main
Oct 31, 2025
Merged

[pull] main from dair-ai:main#68
pull[bot] merged 4 commits into
EntertainmentDB:mainfrom
dair-ai:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Oct 31, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Elvis Saravia and others added 4 commits October 31, 2025 08:19
- Create CopyPageDropdown component with three options:
  - Copy page as Markdown for LLMs
  - Open in Claude with pre-filled prompt
  - Open in ChatGPT with pre-filled prompt
- Add API endpoint to fetch and clean page content (getPageContent.ts)
- Integrate dropdown into all English documentation pages via theme.config.tsx
- Use official Claude AI and ChatGPT logo SVGs
- Position dropdown in top-right corner of content area
- Handle path construction for different page routes (.en suffix detection)
- Add error handling and logging for troubleshooting

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Replace file system access with GitHub raw URL fetch
- This works on Vercel serverless functions where .mdx files aren't bundled
- Fetch content from https://raw.githubusercontent.com/dair-ai/Prompt-Engineering-Guide/main/
- Keep all cleaning logic (remove imports, exports, frontmatter)
- Maintain error handling and logging

Fixes 404 errors when using Copy Page feature on production deployment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Replace inline background colors with Tailwind dark mode classes
- Update dropdown container: nx-bg-white dark:nx-bg-neutral-900
- Update button hover states: hover:nx-bg-gray-100 dark:hover:nx-bg-neutral-800
- Update description text: nx-text-gray-500 dark:nx-text-gray-400
- Remove inline onMouseOver/onMouseOut handlers in favor of classes
- Improve border visibility with dark:nx-border-neutral-700

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Fix button alignment with page content
- Add theme-aware hover effects for dropdown items
  - Light mode: rgba(0, 0, 0, 0.05)
  - Dark mode: rgba(255, 255, 255, 0.1)
- Fix main button dark mode hover (was showing white, now shows proper dark gray)
- Add external link icons to "Open in Claude" and "Open in ChatGPT" options
- Add border radius to menu items for smoother hover appearance
- Improve button layout with flex for better icon alignment

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@pull pull Bot locked and limited conversation to collaborators Oct 31, 2025
@pull pull Bot added the ⤵️ pull label Oct 31, 2025
@pull pull Bot merged commit 5e99d9c into EntertainmentDB:main Oct 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants