-
Notifications
You must be signed in to change notification settings - Fork 10
docs: add button for copy and view #9554
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
docs: add button for copy and view #9554
Conversation
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 🤖 Continuous IntegrationWonderful, this rule succeeded.
🟢 👀 Review RequirementsWonderful, this rule succeeded.
🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
🟢 🔎 ReviewsWonderful, this rule succeeded.
🟢 📕 PR descriptionWonderful, this rule succeeded.
|
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 adds two new toolbar buttons to documentation pages: "Copy for LLM" (copies markdown source to clipboard for use with AI assistants) and "View as Markdown" (opens the raw markdown file in a new tab). The buttons are integrated into the page heading area with responsive layout support.
Key Changes
- New toolbar buttons with compact size styling for documentation pages
- Copy functionality with fallback from markdown source to rendered content
- Responsive grid layout for breadcrumbs and toolbar actions
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 9 comments.
| File | Description |
|---|---|
src/layouts/MainLayout.astro |
Restructures page heading to add toolbar buttons alongside breadcrumbs with responsive grid layout |
src/components/CopyForLLMButton.astro |
Implements copy button with markdown fetching, fallback to rendered content, and state management |
src/components/ViewMarkdownButton.astro |
Adds link button that opens markdown source in new tab |
src/components/PageContent/PageContent.astro |
Adds CSS for page heading bar layout and responsive toolbar positioning |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
83bb30e to
e7f0b44
Compare
e7f0b44 to
c3cce56
Compare
c3cce56 to
16f1583
Compare
This adds 2 buttons to copy for LLM and view as Markdown Change-Id: I59fbd6cb70f0c4d4c409b4f25ebcd587211abdf7
16f1583 to
bd8cf22
Compare
Merge Queue Status
✅ The pull request has been merged This pull request spent 1 minute 54 seconds in the queue, including 1 minute 34 seconds running CI. Required conditions to merge
|
This adds 2 buttons to copy for LLM and view as Markdown