mirror of
https://github.com/github/awesome-copilot.git
synced 2026-06-24 16:37:36 +00:00
chore: publish from staged
This commit is contained in:
@@ -17,6 +17,11 @@ const initialItems = sortExtensions(extensionsData.items, 'title');
|
||||
|
||||
<div class="page-content">
|
||||
<div class="container">
|
||||
<div class="how-to-install">
|
||||
<p><strong>Installing in the GitHub Copilot app:</strong> Click <strong>Copy URL</strong>, then ask Copilot to install that extension URL.</p>
|
||||
<p><strong>Example:</strong> <code>Install this extension: https://github.com/github/awesome-copilot/tree/main/extensions/accessibility-kanban</code></p>
|
||||
</div>
|
||||
|
||||
<div class="listing-toolbar">
|
||||
<div class="listing-toolbar-row">
|
||||
<div class="results-count" id="results-count" aria-live="polite">{initialItems.length} extensions</div>
|
||||
@@ -56,4 +61,30 @@ const initialItems = sortExtensions(extensionsData.items, 'title');
|
||||
import '../scripts/pages/extensions';
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.how-to-install {
|
||||
background: var(--sl-color-bg-nav);
|
||||
border: 1px solid var(--sl-color-hairline);
|
||||
border-radius: 0.5rem;
|
||||
padding: 1rem 1.25rem;
|
||||
margin-bottom: 1.5rem;
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.how-to-install p {
|
||||
margin: 0 0 0.5rem;
|
||||
}
|
||||
|
||||
.how-to-install p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.how-to-install code {
|
||||
background: var(--sl-color-bg-inline-code);
|
||||
padding: 0.1em 0.35em;
|
||||
border-radius: 0.2rem;
|
||||
font-size: 0.85em;
|
||||
}
|
||||
</style>
|
||||
</StarlightPage>
|
||||
|
||||
@@ -104,7 +104,7 @@ export function renderExtensionsHtml(items: RenderableExtension[]): string {
|
||||
title="Copy install URL"
|
||||
${installUrl ? "" : "disabled"}
|
||||
>
|
||||
Install
|
||||
Copy URL
|
||||
</button>
|
||||
${
|
||||
sourceUrl
|
||||
|
||||
@@ -291,7 +291,7 @@ function setupActionHandlers(list: HTMLElement | null): void {
|
||||
}
|
||||
const success = await copyToClipboard(installUrl);
|
||||
showToast(
|
||||
success ? "Install URL copied!" : "Failed to copy install URL",
|
||||
success ? "Extension URL copied!" : "Failed to copy extension URL",
|
||||
success ? "success" : "error"
|
||||
);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user