Skip to content

Conversation

@BenjaminMichaelis
Copy link
Member

@BenjaminMichaelis BenjaminMichaelis commented Jul 15, 2025

Fixes #759
Fixes #760

@BenjaminMichaelis BenjaminMichaelis self-assigned this Jul 15, 2025
Copy link
Contributor

Copilot AI left a 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 a quick reference table for C# naming conventions and injects anchor link buttons into each guideline heading for easy deep linking.

  • Refactored the copyToClipboard function to distinguish full-path anchors vs. current-page anchors
  • Introduced CSS rules to style and show/hide the anchor link icons
  • Updated the Guidelines view to add a naming conventions table and anchor buttons on all headings

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
wwwroot/js/site.js Changed copyToClipboard to handle both full-path and same-page anchor links
wwwroot/css/styles.css Added .anchor-link styling (initially hidden, visible on hover/focus)
Views/Home/Guidelines.cshtml Added the "C# Naming Conventions" table and anchor buttons for each guideline block

@BenjaminMichaelis BenjaminMichaelis force-pushed the addNamingTableAndGuidelineAnchors branch from 095aa5c to d9dc06e Compare July 15, 2025 03:06
@BenjaminMichaelis BenjaminMichaelis merged commit 4cff45c into main Jul 24, 2025
5 checks passed
@BenjaminMichaelis BenjaminMichaelis deleted the addNamingTableAndGuidelineAnchors branch July 24, 2025 07:36
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.

Add anchors to guideline blocks Add naming convention table

3 participants