Skip to content

Commit f5d7c79

Browse files
Add GitHub Copilot chat links to header
Introduced GitHub Copilot chat buttons in the header and navigation menu to allow users to ask questions about the dbatools PowerShell module directly via GitHub Copilot.
1 parent 4ca8d16 commit f5d7c79

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

themes/dbatools2025/layouts/partials/header.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@
2525
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
2626
</svg>
2727
</button>
28+
<!-- GitHub Copilot Chat Button -->
29+
<a href="https://github.com/copilot?prompt=Using%20the%20dbatools%20PowerShell%20module%20%28https%3A%2F%2Fgithub.com%2Fdataplat%2Fdbatools%29%2C%20"
30+
target="_blank"
31+
rel="noopener noreferrer"
32+
title="Ask Copilot questions about dbatools"
33+
class="p-2 text-theme-text-secondary dark:text-[#b4b4b4] hover:text-theme-text dark:hover:text-[#ececec] hover:bg-gray-50 dark:hover:bg-[#2d2d2d] rounded-lg transition-colors"
34+
aria-label="Chat with GitHub Copilot about dbatools">
35+
<svg class="w-5 h-5" viewBox="0 0 24 24" fill="currentColor">
36+
<!-- GitHub Copilot icon -->
37+
<path d="M12 1.5C6.2 1.5 1.5 6.2 1.5 12S6.2 22.5 12 22.5 22.5 17.8 22.5 12 17.8 1.5 12 1.5zM9.5 8.5c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm5 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-7.03 5.32c-.14-.39.06-.82.45-.96.39-.14.82.06.96.45.56 1.57 2.03 2.69 3.62 2.69s3.06-1.12 3.62-2.69c.14-.39.57-.59.96-.45.39.14.59.57.45.96-.78 2.17-2.77 3.68-5.03 3.68s-4.25-1.51-5.03-3.68z"/>
38+
</svg>
39+
</a>
2840
<!-- Theme Toggle Button -->
2941
<button id="theme-toggle" class="p-2 text-theme-text-secondary dark:text-[#b4b4b4] hover:text-theme-text dark:hover:text-[#ececec] hover:bg-gray-50 dark:hover:bg-[#2d2d2d] rounded-lg transition-colors" aria-label="Toggle dark mode">
3042
<!-- Sun icon (visible in dark mode) -->
@@ -77,6 +89,15 @@
7789
<a href="/team" class="text-theme-text-secondary dark:text-[#b4b4b4] hover:text-theme-text dark:hover:text-[#ececec] transition-colors py-2">Team</a>
7890
<a href="https://github.com/dataplat/dbatools" target="_blank" class="text-theme-text-secondary dark:text-[#b4b4b4] hover:text-theme-text dark:hover:text-[#ececec] transition-colors py-2">GitHub</a>
7991
<a href="/builds" class="text-theme-text-secondary dark:text-[#b4b4b4] hover:text-theme-text dark:hover:text-[#ececec] transition-colors py-2">Builds</a>
92+
<a href="https://github.com/copilot?prompt=Using%20the%20dbatools%20PowerShell%20module%20%28https%3A%2F%2Fgithub.com%2Fdataplat%2Fdbatools%29%2C%20"
93+
target="_blank"
94+
rel="noopener noreferrer"
95+
class="flex items-center gap-2 text-theme-text-secondary dark:text-[#b4b4b4] hover:text-theme-text dark:hover:text-[#ececec] transition-colors py-2">
96+
<svg class="w-4 h-4" viewBox="0 0 24 24" fill="currentColor">
97+
<path d="M12 1.5C6.2 1.5 1.5 6.2 1.5 12S6.2 22.5 12 22.5 22.5 17.8 22.5 12 17.8 1.5 12 1.5zM9.5 8.5c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm5 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm-7.03 5.32c-.14-.39.06-.82.45-.96.39-.14.82.06.96.45.56 1.57 2.03 2.69 3.62 2.69s3.06-1.12 3.62-2.69c.14-.39.57-.59.96-.45.39.14.59.57.45.96-.78 2.17-2.77 3.68-5.03 3.68s-4.25-1.51-5.03-3.68z"/>
98+
</svg>
99+
Ask Copilot
100+
</a>
80101

81102
<a href="/install" class="bg-theme-text dark:bg-[#58a6ff] text-white dark:text-[#1a1a1a] px-4 py-2 rounded-lg text-center font-medium mt-2">Install</a>
82103
</div>

0 commit comments

Comments
 (0)