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:
@@ -1018,7 +1018,7 @@ function generateCanvasManifest(gitDates, commitSha) {
|
|||||||
const canvasEntries = canvases.length > 0
|
const canvasEntries = canvases.length > 0
|
||||||
? canvases
|
? canvases
|
||||||
: [{ id: dir.name, displayName: formatDisplayName(dir.name), description: extensionDescription }];
|
: [{ id: dir.name, displayName: formatDisplayName(dir.name), description: extensionDescription }];
|
||||||
const installUrl = `https://github.com/github/awesome-copilot/tree/${commitSha}/${relPath.replace(
|
const installUrl = `https://github.com/github/awesome-copilot/tree/main/${relPath.replace(
|
||||||
/\\/g,
|
/\\/g,
|
||||||
"/"
|
"/"
|
||||||
)}`;
|
)}`;
|
||||||
|
|||||||
@@ -17,6 +17,11 @@ const initialItems = sortExtensions(extensionsData.items, 'title');
|
|||||||
|
|
||||||
<div class="page-content">
|
<div class="page-content">
|
||||||
<div class="container">
|
<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">
|
||||||
<div class="listing-toolbar-row">
|
<div class="listing-toolbar-row">
|
||||||
<div class="results-count" id="results-count" aria-live="polite">{initialItems.length} extensions</div>
|
<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';
|
import '../scripts/pages/extensions';
|
||||||
</script>
|
</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>
|
</StarlightPage>
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ export function renderExtensionsHtml(items: RenderableExtension[]): string {
|
|||||||
title="Copy install URL"
|
title="Copy install URL"
|
||||||
${installUrl ? "" : "disabled"}
|
${installUrl ? "" : "disabled"}
|
||||||
>
|
>
|
||||||
Install
|
Copy URL
|
||||||
</button>
|
</button>
|
||||||
${
|
${
|
||||||
sourceUrl
|
sourceUrl
|
||||||
|
|||||||
@@ -291,7 +291,7 @@ function setupActionHandlers(list: HTMLElement | null): void {
|
|||||||
}
|
}
|
||||||
const success = await copyToClipboard(installUrl);
|
const success = await copyToClipboard(installUrl);
|
||||||
showToast(
|
showToast(
|
||||||
success ? "Install URL copied!" : "Failed to copy install URL",
|
success ? "Extension URL copied!" : "Failed to copy extension URL",
|
||||||
success ? "success" : "error"
|
success ? "success" : "error"
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user