[pull] main from dair-ai:main#68
Merged
Merged
Conversation
- 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 : )