From e7c27b61c3ae3fd7467cf9cabcd861147a8d8907 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 4 Nov 2023 10:23:05 -0400 Subject: [PATCH] =?UTF-8?q?Why=20won=E2=80=99t=20twitter=20show=20our=20pr?= =?UTF-8?q?eviews=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/scripts/gen-index.html.ts | 4 ++-- .github/scripts/gen-index.json.ts | 4 ---- index.html | 9 +++++---- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/scripts/gen-index.html.ts b/.github/scripts/gen-index.html.ts index 75db11d..2948731 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 7e74149..6713095 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 a948afc..103ff56 100644 --- a/index.html +++ b/index.html @@ -5,10 +5,11 @@ - - - - + + + + +