mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-22 19:35:13 +00:00
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
This commit is contained in:
14
website-astro/astro.config.mjs
Normal file
14
website-astro/astro.config.mjs
Normal file
@@ -0,0 +1,14 @@
|
||||
import { defineConfig } from 'astro/config';
|
||||
import sitemap from '@astrojs/sitemap';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
site: 'https://github.github.io',
|
||||
base: '/awesome-copilot/',
|
||||
output: 'static',
|
||||
integrations: [sitemap()],
|
||||
build: {
|
||||
assets: 'assets',
|
||||
},
|
||||
trailingSlash: 'always',
|
||||
});
|
||||
Reference in New Issue
Block a user