From 9bd7bc8a47efc283f443da2545e60e35cb5be69b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Sat, 24 Dec 2022 03:43:28 +0100 Subject: [PATCH] chore: fix docs building --- .prettierignore | 4 ++-- docs/docusaurus.config.js | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.prettierignore b/.prettierignore index 464c07af..123b8856 100644 --- a/.prettierignore +++ b/.prettierignore @@ -9,8 +9,6 @@ node_modules patches pnpm-lock.yaml .github/actions/issue-validator/index.mjs -*.cjs -*.js *.d.ts *.d.ts.map @@ -30,6 +28,8 @@ static coverage dist +packages/**/*.cjs +packages/**/*.js # @auth/core packages/core/src/providers/oauth-types.ts diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index fef74300..9ba66685 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -199,6 +199,7 @@ const docusaurusConfig = { "docusaurus-plugin-typedoc", { ...typedocConfig, + id: "core", plugin: ["./tyepdoc"], entryPoints: ["index.ts", "adapters.ts", "errors.ts", "jwt.ts", "types.ts"].map((e) => `${coreSrc}/${e}`).concat(providers), tsconfig: "../packages/core/tsconfig.json", @@ -207,6 +208,19 @@ const docusaurusConfig = { includeExtension: false, }, ], + [ + "docusaurus-plugin-typedoc", + { + ...typedocConfig, + id: "sveltekit", + plugin: ["./tyepdoc"], + entryPoints: ["index.ts", "client.ts"].map((e) => `../packages/frameworks-sveltekit/src/lib/${e}`), + tsconfig: "../packages/frameworks-sveltekit/tsconfig.json", + out: "reference/04-sveltekit", + watch: process.env.TYPEDOC_WATCH, + includeExtension: false, + }, + ], ], }