From e25146788b20f104ca00e9ab879170c30473217d Mon Sep 17 00:00:00 2001 From: DuroCodes Date: Mon, 6 May 2024 22:36:23 -0400 Subject: [PATCH] fix: hopefully fix deploying --- .github/workflows/github-pages.yml | 2 +- astro.config.mjs | 16 +++++----------- bun.lockb | Bin 280448 -> 280448 bytes netlify.toml | 2 +- 4 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 0bc088ed4..a9e56fa40 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -18,7 +18,7 @@ jobs: run: bun install - name: Build - run: bun run build + run: git clone https://sern-handler/handler sern-handler && bun run build - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 diff --git a/astro.config.mjs b/astro.config.mjs index 95b458ad1..f54276b2a 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -4,13 +4,6 @@ import starlightBlog from 'starlight-blog'; import tailwind from "@astrojs/tailwind"; import starlightDocSearch from '@astrojs/starlight-docsearch'; import starlightTypeDoc, { typeDocSidebarGroup } from 'starlight-typedoc'; -import { existsSync } from 'fs'; - -const typedocFileExists = existsSync('../sern-handler/tsconfig.json'); - -if (!typedocFileExists) { - console.warn('No typedoc file found. Skipping typedoc integration. If you want to use typedoc, make sure to have `sern-handler` in the parent directory.'); -} export default defineConfig({ integrations: [starlight({ @@ -89,12 +82,13 @@ export default defineConfig({ }, } }), - typedocFileExists ? starlightTypeDoc({ + starlightTypeDoc({ tsconfig: '../sern-handler/tsconfig.json', + entryPoints: ['../sern-handler/src/index.ts'], autogenerate: { directory: 'api', }, - }) : null, - ].filter(Boolean), + }), + ], }), tailwind()] -}); \ No newline at end of file +}); diff --git a/bun.lockb b/bun.lockb index 537cf0ec2904e035f38dcbf2f3edc56749568088..0e17781dd3441a9a313cbc560499c6fcc20e2309 100755 GIT binary patch delta 333 zcmV-T0kZypj}d^65s)q*3(~Aw%|#lL>H+x3B=29i`J&_|J6Nj{j;g7^MC}Bxu}(Tv zlgKqNv$#~yLIU*ylW{91ldy^jv$>ZK0+WP1D3h=&2($Q^ouEJ?0<$ zBg5n)I6$b+YfJ-9E{; z)j9#-TR@HbLue@{VI-~p;);2E$K18~6JW1Ixx3{3$B*KFcKyOHN|a&4t=D&X6x~gT zzDOmu;mms5+!`i$ZLN_hS(~@@mI2rTK+n^W=qN)dikid2{axzxySawnc$}Wh!G@@| z@DLlZK0+WO{D3h=&2($Q^ouEKIS3%3Ya68p1)=Zi) z$bA5EAcoX0BMd=OOZ?k-i3818*EJ09eVRIy+P`7bAY(+xg@1F`$JB}&7`om z)j9#-TR=pTnfL3&1jnL03(7TYnU3Z%Qllqz!}WiC`Jj5I+z}9N&5ah-Yn-lr>3BK8 zBRx(@%{G;wgkaPNp_mu!R$sUEmI2rTKtu%4XMh#2zY5<=OfQKp(anls=?2#9 zmoT+#`WhSb-nBToiADT%2uA@DthTPKNEWSPMoDpf!Ws