GaneshPatil7517 opened a new pull request, #1493:
URL: https://github.com/apache/camel-website/pull/1493

   ## Description
   Fixes #1484
   
   This PR adds an "Edit this Page on GitHub" link to documentation pages, 
allowing users to quickly navigate to the source file on GitHub for editing. 
This encourages community contributions and makes it easier to fix 
documentation issues.
   
   ## Changes Made
   
   ### Template Updates (`antora-ui-camel/src/partials/toolbar.hbs`)
   - Simplified the conditional logic to show the edit link when `page.editUrl` 
is available
   - Added a pencil icon (SVG) for better visual identification
   - Added `title="Edit this page on GitHub"` for accessibility
   - The link text "Edit this Page" is wrapped in a span for responsive control
   
   ### CSS Updates (`antora-ui-camel/src/css/toolbar.css`)
   - Changed from `display: none` to `display: flex` so the edit icon is always 
visible
   - Added `margin-left: auto` to position the link on the right side of the 
toolbar
   - Added hover effects (background color change) for better UX
   - Icon is always visible; text label is hidden on mobile (< 768px) and shown 
on larger screens
   - Added smooth transition animations
   
   ## Visual Behavior
   | Screen Size | Display |
   |------------|---------|
   | Mobile (< 768px) | ✏️ (icon only) |
   | Tablet/Desktop (≥ 768px) | ✏️ Edit this Page |
   
   ## Acceptance Criteria
   - Add "Edit on GitHub" link to documentation page template
   - Link points to the correct source file in the appropriate repository
   - Style the link to be visible but not intrusive
   
   ## Files Changed
   - `antora-ui-camel/src/partials/toolbar.hbs` - Template with edit link
   - `antora-ui-camel/src/css/toolbar.css` - Styling for the edit link
   - `antora-ui-camel/public/` - Built assets
   
   ## Type
   Enhancement / Developer Experience


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to