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 537cf0ec2..0e17781dd 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/netlify.toml b/netlify.toml index 0709690b1..83e598f31 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,3 @@ [build] publish = "dist" -command = "bun run build" \ No newline at end of file +command = "git clone https://sern-handler/handler sern-handler && bun run build" \ No newline at end of file