Files
awesome-copilot/website-astro/dist/samples/index.html
Aaron Powell 6bcb6ffc37 refactor(website): convert to ES modules with TypeScript
- Replace all inline scripts with TypeScript modules
- Create page-specific modules for agents, prompts, instructions, skills, collections, index
- Create core modules: utils.ts, search.ts, modal.ts, choices.ts, jszip.ts, theme.ts
- Remove window global exports, use proper ES module imports
- Add type interfaces for all data structures
- Use data-base-path attribute on body for base URL handling
- Bundle Choices.js and JSZip via npm instead of CDN
- Astro pages now just have single script import each
2026-01-28 16:38:49 +11:00

8 lines
6.8 KiB
HTML

<!DOCTYPE html><html lang="en"> <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Samples - Awesome GitHub Copilot</title><meta name="description" content="Code samples and examples for building with GitHub Copilot"><link rel="stylesheet" href="/awesome-copilot/styles/global.css"><link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🤖</text></svg>"><script type="module">const n="theme";function o(e){document.documentElement.setAttribute("data-theme",e)}function c(){const t=document.documentElement.getAttribute("data-theme")==="light"?"dark":"light";o(t),localStorage.setItem(n,t)}function d(){const e=document.getElementById("theme-toggle");e&&e.addEventListener("click",c),window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").addEventListener("change",t=>{localStorage.getItem(n)||o(t.matches?"light":"dark")})}document.addEventListener("DOMContentLoaded",d);</script><style>.coming-soon[data-astro-cid-plglm3ua]{text-align:center;padding:64px 32px;background-color:var(--color-bg-secondary);border:1px dashed var(--color-border);border-radius:var(--border-radius-lg)}.coming-soon-icon[data-astro-cid-plglm3ua]{font-size:64px;margin-bottom:24px}.coming-soon[data-astro-cid-plglm3ua] h2[data-astro-cid-plglm3ua]{color:var(--color-text-emphasis);margin-bottom:16px;font-size:28px}.coming-soon[data-astro-cid-plglm3ua] p[data-astro-cid-plglm3ua]{color:var(--color-text-muted);max-width:500px;margin:0 auto 16px}.sample-list[data-astro-cid-plglm3ua]{list-style:none;padding:0;margin:24px auto;max-width:300px;text-align:left}.sample-list[data-astro-cid-plglm3ua] li[data-astro-cid-plglm3ua]{padding:8px 0;color:var(--color-text);border-bottom:1px solid var(--color-border)}.sample-list[data-astro-cid-plglm3ua] li[data-astro-cid-plglm3ua]:before{content:"→ ";color:var(--color-link)}.coming-soon-actions[data-astro-cid-plglm3ua]{margin-top:32px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
</style></head> <body data-base-path="/awesome-copilot/"> <header class="site-header"> <div class="container"> <div class="header-content"> <a href="/awesome-copilot/" class="logo"> <span class="logo-icon">🤖</span> <span class="logo-text">Awesome Copilot</span> </a> <nav class="main-nav"> <a href="/awesome-copilot/agents/">Agents</a> <a href="/awesome-copilot/prompts/">Prompts</a> <a href="/awesome-copilot/instructions/">Instructions</a> <a href="/awesome-copilot/skills/">Skills</a> <a href="/awesome-copilot/collections/">Collections</a> <a href="/awesome-copilot/tools/">Tools</a> <a href="/awesome-copilot/samples/" class="active">Samples</a> </nav> <div class="header-actions"> <button id="theme-toggle" class="theme-toggle" title="Toggle theme"> <svg class="icon-sun" viewBox="0 0 16 16" fill="currentColor"> <path d="M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0V.75A.75.75 0 0 1 8 0zm0 13a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 8 13zM2.343 2.343a.75.75 0 0 1 1.061 0l1.06 1.061a.75.75 0 0 1-1.06 1.06l-1.06-1.06a.75.75 0 0 1 0-1.06zm9.193 9.193a.75.75 0 0 1 1.06 0l1.061 1.06a.75.75 0 0 1-1.06 1.061l-1.061-1.06a.75.75 0 0 1 0-1.061zM0 8a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5H.75A.75.75 0 0 1 0 8zm13 0a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5A.75.75 0 0 1 13 8zM2.343 13.657a.75.75 0 0 1 0-1.061l1.06-1.06a.75.75 0 0 1 1.061 1.06l-1.06 1.06a.75.75 0 0 1-1.061 0zm9.193-9.193a.75.75 0 0 1 0-1.06l1.061-1.061a.75.75 0 0 1 1.06 1.06l-1.06 1.061a.75.75 0 0 1-1.061 0z"></path> </svg> <svg class="icon-moon" viewBox="0 0 16 16" fill="currentColor"> <path d="M9.598 1.591a.75.75 0 0 1 .785-.175 7 7 0 1 1-8.967 8.967.75.75 0 0 1 .961-.96 5.5 5.5 0 0 0 7.046-7.046.75.75 0 0 1 .175-.786zm1.616 1.945a7 7 0 0 1-7.678 7.678 5.5 5.5 0 1 0 7.678-7.678z"></path> </svg> </button> <a href="https://github.com/github/awesome-copilot" class="github-link" target="_blank" rel="noopener"> <svg viewBox="0 0 16 16" width="24" height="24" fill="currentColor"> <path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path> </svg> </a> </div> </div> </div> </header> <main data-astro-cid-plglm3ua> <div class="page-header" data-astro-cid-plglm3ua> <div class="container" data-astro-cid-plglm3ua> <h1 data-astro-cid-plglm3ua>📚 Samples</h1> <p data-astro-cid-plglm3ua>Code samples and examples for building with GitHub Copilot</p> </div> </div> <div class="page-content" data-astro-cid-plglm3ua> <div class="container" data-astro-cid-plglm3ua> <div class="coming-soon" data-astro-cid-plglm3ua> <div class="coming-soon-icon" data-astro-cid-plglm3ua>🚧</div> <h2 data-astro-cid-plglm3ua>Coming Soon</h2> <p data-astro-cid-plglm3ua>We're migrating code samples from the <a href="https://github.com/github/copilot-sdk/tree/main/cookbook" target="_blank" rel="noopener" data-astro-cid-plglm3ua>Copilot SDK Cookbook</a> to this repository.</p> <p data-astro-cid-plglm3ua>Check back soon for examples including:</p> <ul class="sample-list" data-astro-cid-plglm3ua> <li data-astro-cid-plglm3ua>Building custom agents</li> <li data-astro-cid-plglm3ua>Integrating with MCP servers</li> <li data-astro-cid-plglm3ua>Creating prompt templates</li> <li data-astro-cid-plglm3ua>Working with Copilot APIs</li> </ul> <div class="coming-soon-actions" data-astro-cid-plglm3ua> <a href="https://github.com/github/copilot-sdk/tree/main/cookbook" class="btn btn-primary" target="_blank" rel="noopener" data-astro-cid-plglm3ua>
View Current Cookbook
</a> <a href="https://github.com/github/awesome-copilot" class="btn btn-secondary" target="_blank" rel="noopener" data-astro-cid-plglm3ua>
Watch Repository
</a> </div> </div> </div> </div> </main> <footer class="site-footer"> <div class="container"> <p> <a href="https://github.com/github/awesome-copilot" target="_blank" rel="noopener">GitHub</a> ·
<a href="https://github.com/github/awesome-copilot/blob/main/CONTRIBUTING.md" target="_blank" rel="noopener">Contribute</a> ·
<a href="https://github.com/github/awesome-copilot/blob/main/LICENSE" target="_blank" rel="noopener">MIT License</a> </p> </div> </footer> <script type="module">(function(){const e=localStorage.getItem("theme")||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");document.documentElement.setAttribute("data-theme",e)})();</script> </body> </html>