Skip to content

Commit

Permalink
astro and starlight upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
fostertheweb committed Jul 9, 2024
1 parent 14119e3 commit 16b0339
Show file tree
Hide file tree
Showing 120 changed files with 5,417 additions and 13,973 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ TODOs.md
/example_node/.env
/screenshots
/example_react/.env
/docs/src/content/docs/api
19 changes: 9 additions & 10 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";
import { generateTypeDoc } from "starlight-typedoc";

const typeDocSidebarGroup = await generateTypeDoc({
entryPoints: ["../src/index.ts"],
tsconfig: ["../tsconfig.json"],
});
import starlightTypeDoc, { typeDocSidebarGroup } from "starlight-typedoc";
import path from "path";

// https://astro.build/config
export default defineConfig({
Expand All @@ -19,6 +15,12 @@ export default defineConfig({
social: {
github: "https://github.com/fostertheweb/spotify-web-sdk",
},
plugins: [
starlightTypeDoc({
entryPoints: [path.resolve("../src/index.ts")],
tsconfig: [path.resolve("../tsconfig.json")],
}),
],
sidebar: [
{
label: "Guides",
Expand All @@ -31,10 +33,7 @@ export default defineConfig({
},
],
},
{
...typeDocSidebarGroup,
label: "Reference",
},
typeDocSidebarGroup,
],
}),
],
Expand Down
12 changes: 6 additions & 6 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"upgrade": "pnpm dlx @astrojs/upgrade"
},
"dependencies": {
"@astrojs/starlight": "^0.21.1",
"astro": "^4.4.15",
"@astrojs/starlight": "^0.25.0",
"astro": "^4.11.5",
"sharp": "^0.32.5",
"starlight-typedoc": "^0.9.0",
"typedoc": "^0.25.11",
"typedoc-plugin-markdown": "4.0.0-next.53"
"starlight-typedoc": "^0.12.0",
"typedoc": "^0.25.0",
"typedoc-plugin-markdown": "~4.0"
}
}
}
112 changes: 0 additions & 112 deletions docs/src/content/docs/api/classes/AuthorizationCodeWithPKCEStrategy.md

This file was deleted.

110 changes: 0 additions & 110 deletions docs/src/content/docs/api/classes/ClientCredentialsStrategy.md

This file was deleted.

46 changes: 0 additions & 46 deletions docs/src/content/docs/api/classes/ConsoleLoggingErrorHandler.md

This file was deleted.

50 changes: 0 additions & 50 deletions docs/src/content/docs/api/classes/DefaultResponseDeserializer.md

This file was deleted.

Loading

0 comments on commit 16b0339

Please sign in to comment.