Skip to content

🎨 Palette: Implement 'Copy Section Link' in Documentation#38

Open
MilakyS wants to merge 1 commit into
mainfrom
palette/docs-copy-link-8888277018393512032
Open

🎨 Palette: Implement 'Copy Section Link' in Documentation#38
MilakyS wants to merge 1 commit into
mainfrom
palette/docs-copy-link-8888277018393512032

Conversation

@MilakyS

@MilakyS MilakyS commented Jun 10, 2026

Copy link
Copy Markdown
Member

💡 What: Added "Copy Link" buttons to the Documentation Hero and each section header.
🎯 Why: Allows users to easily share deep links to specific sections of the documentation, improving the collaborative and reference experience.
Accessibility:

  • Buttons are keyboard-accessible (reveal on :focus-within and :focus-visible).
  • Includes localized aria-label and dynamic status updates.
  • Uses semantic <button> elements with aria-hidden icons.
    📸 Visuals: Buttons reveal elegantly on card hover or focus, providing a tick-mark confirmation and "Copied!" label change upon success.
    🛠️ Technical Note: Implementation uses regex-based escaping and ES5-compatible patterns in shared assets to ensure stability in Cloudflare Workers (Workers Assets) environments.

PR created automatically by Jules for task 8888277018393512032 started by @MilakyS

- Injected 'Copy Link' buttons into documentation hero and section headers in assets/js/docs-page.js.
- Implemented clipboard logic and visual feedback in assets/js/docs.js.
- Added localized strings for 'Copy link' and 'Copied!' in assets/data/site.json (EN/RU).
- Added styling in assets/css/docs.css using existing design tokens, ensuring buttons reveal on hover or focus.
- Optimized implementation for environment compatibility (regex-based escaping for Cloudflare Workers).

Co-authored-by: MilakyS <155958485+MilakyS@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@netlify

netlify Bot commented Jun 10, 2026

Copy link
Copy Markdown

Deploy Preview for melodious-queijadas-3cc817 ready!

Name Link
🔨 Latest commit 5fa950e
🔍 Latest deploy log https://app.netlify.com/projects/melodious-queijadas-3cc817/deploys/6a28fc7a20e63c0008ad806e
😎 Deploy Preview https://deploy-preview-38--melodious-queijadas-3cc817.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant