diff --git a/.github/scripts/gen-index.html.ts b/.github/scripts/gen-index.html.ts index 75db11d5..2948731d 100755 --- a/.github/scripts/gen-index.html.ts +++ b/.github/scripts/gen-index.html.ts @@ -1,7 +1,5 @@ #!/usr/bin/env -S pkgx deno run --allow-read --allow-write=./out -console.log('hio') - interface Pkg { name?: string project: string @@ -27,6 +25,8 @@ for (const pkg of pkgs) { txt = txt.replace(/.*<\/title>/, `<title>${title}`); + txt = txt.replace('', '') + Deno.writeTextFileSync(`./out/${pkg.project}/index.html`, txt); console.log(`./out/${pkg.project}/index.html`) diff --git a/.github/scripts/gen-index.json.ts b/.github/scripts/gen-index.json.ts index 7e74149c..67130955 100755 --- a/.github/scripts/gen-index.json.ts +++ b/.github/scripts/gen-index.json.ts @@ -10,8 +10,6 @@ interface Package { labels?: string[] } -console.error('HI') - export async function getKettleRemoteMetadata() { const headers = { Authorization: 'public' } const rsp = await fetch(`https://app.pkgx.dev/v1/packages/`, {headers}) @@ -69,8 +67,6 @@ async function getPackageYmlCreationDates(): Promise { const pkgs = await getPackageYmlCreationDates(); -console.error({pkgs}) - // sort by birthtime pkgs.sort((a, b) => b.birthtime.getTime() - a.birthtime.getTime()); diff --git a/index.html b/index.html index a948afc1..103ff569 100644 --- a/index.html +++ b/index.html @@ -5,10 +5,11 @@ - - - - + + + + +