diff --git a/.gitignore b/.gitignore index f9e74db9a..8c1dfc1c0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,6 @@ dist/ # dependencies node_modules/ -sern-handler # logs npm-debug.log* diff --git a/astro.config.mjs b/astro.config.mjs index 8bbb8f908..48ed3b8f0 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -2,7 +2,6 @@ import { defineConfig } from 'astro/config'; import starlight from '@astrojs/starlight'; import starlightBlog from 'starlight-blog'; import tailwind from "@astrojs/tailwind"; -import starlightDocSearch from '@astrojs/starlight-docsearch'; import starlightTypeDoc, { typeDocSidebarGroup } from 'starlight-typedoc'; export default defineConfig({ @@ -13,8 +12,9 @@ export default defineConfig({ discord: 'https://discord.gg/DwbF5H5JgQ', }, components: { - ThemeSelect: './src/components/ThemeSelect.astro', - Head: './src/components/Head.astro', + Head: './src/overrides/Head.astro', + SiteTitle: './src/overrides/SiteTitle.astro', + ThemeSelect: './src/overrides/ThemeSelect.astro', }, logo: { src: './src/assets/logo/navbar-icon.png', @@ -44,11 +44,6 @@ export default defineConfig({ }, ], plugins: [ - starlightDocSearch({ - appId: 'AA9S5J9NYT', - apiKey: 'ccfe6abc4d12ac6f882565a9d0caafb1', - indexName: 'sern', - }), starlightBlog({ authors: { jacoobes: { diff --git a/bun.lockb b/bun.lockb index b3bfc5c51..13506b43f 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 5963b9b68..014f3e2e4 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,6 @@ "dependencies": { "@astrojs/check": "^0.5.10", "@astrojs/starlight": "^0.22.1", - "@astrojs/starlight-docsearch": "^0.1.0", "@astrojs/starlight-tailwind": "^2.0.2", "@astropub/md": "^0.4.0", "@expressive-code/plugin-line-numbers": "^0.35.3", diff --git a/src/components/ThemeSelect.astro b/src/components/ThemeSelect.astro deleted file mode 100644 index f5eeac2cc..000000000 --- a/src/components/ThemeSelect.astro +++ /dev/null @@ -1,39 +0,0 @@ ---- -// Reference: https://github.com/HiDeoo/starlight-blog/blob/924b20ce0dd5f71eb2416fefed8a5134586893d8/packages/starlight-blog/overrides/ThemeSelect.astro#L10 -// Have to override Starlight ThemeSelect component to add custom links in the header. -import type { Props } from "@astrojs/starlight/props"; -import StarlightThemeSelect from "starlight-blog/overrides/ThemeSelect.astro"; ---- - -
- Docs -
-
- Plugins -
-
- Sponsors -
- - - - - diff --git a/src/content/docs/api/interfaces/SernAutocompleteData.md b/src/content/docs/api/interfaces/SernAutocompleteData.md index 4fc58b5a0..e1d54ba15 100644 --- a/src/content/docs/api/interfaces/SernAutocompleteData.md +++ b/src/content/docs/api/interfaces/SernAutocompleteData.md @@ -41,13 +41,13 @@ title: "SernAutocompleteData" #### Source -node\_modules/discord.js/typings/index.d.ts:4493 +node\_modules/discord.js/typings/index.d.ts:4711 *** ### descriptionLocalizations? -> `optional` **descriptionLocalizations**: `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\> +> `optional` **descriptionLocalizations**: `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"es-419"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\> #### Inherited from @@ -55,7 +55,7 @@ node\_modules/discord.js/typings/index.d.ts:4493 #### Source -node\_modules/discord.js/typings/index.d.ts:4494 +node\_modules/discord.js/typings/index.d.ts:4712 *** @@ -69,13 +69,13 @@ node\_modules/discord.js/typings/index.d.ts:4494 #### Source -node\_modules/discord.js/typings/index.d.ts:4491 +node\_modules/discord.js/typings/index.d.ts:4709 *** ### nameLocalizations? -> `optional` **nameLocalizations**: `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\> +> `optional` **nameLocalizations**: `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"es-419"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\> #### Inherited from @@ -83,7 +83,7 @@ node\_modules/discord.js/typings/index.d.ts:4491 #### Source -node\_modules/discord.js/typings/index.d.ts:4492 +node\_modules/discord.js/typings/index.d.ts:4710 *** @@ -97,7 +97,7 @@ node\_modules/discord.js/typings/index.d.ts:4492 #### Source -node\_modules/discord.js/typings/index.d.ts:4495 +node\_modules/discord.js/typings/index.d.ts:4713 *** diff --git a/src/content/docs/api/interfaces/SernSubCommandData.md b/src/content/docs/api/interfaces/SernSubCommandData.md index 1a9550fe9..b6ba8dc5c 100644 --- a/src/content/docs/api/interfaces/SernSubCommandData.md +++ b/src/content/docs/api/interfaces/SernSubCommandData.md @@ -27,7 +27,7 @@ node\_modules/discord-api-types/payloads/v10/\_interactions/\_applicationCommand ### description\_localizations? -> `optional` **description\_localizations**: `null` \| `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\> +> `optional` **description\_localizations**: `null` \| `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"es-419"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\> #### Inherited from @@ -55,7 +55,7 @@ node\_modules/discord-api-types/payloads/v10/\_interactions/\_applicationCommand ### name\_localizations? -> `optional` **name\_localizations**: `null` \| `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\> +> `optional` **name\_localizations**: `null` \| `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"es-419"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\> #### Inherited from diff --git a/src/content/docs/api/interfaces/SernSubCommandGroupData.md b/src/content/docs/api/interfaces/SernSubCommandGroupData.md index d71c78017..d502cc004 100644 --- a/src/content/docs/api/interfaces/SernSubCommandGroupData.md +++ b/src/content/docs/api/interfaces/SernSubCommandGroupData.md @@ -21,7 +21,7 @@ title: "SernSubCommandGroupData" #### Source -node\_modules/discord.js/typings/index.d.ts:4496 +node\_modules/discord.js/typings/index.d.ts:4714 *** @@ -35,13 +35,13 @@ node\_modules/discord.js/typings/index.d.ts:4496 #### Source -node\_modules/discord.js/typings/index.d.ts:4493 +node\_modules/discord.js/typings/index.d.ts:4711 *** ### descriptionLocalizations? -> `optional` **descriptionLocalizations**: `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\> +> `optional` **descriptionLocalizations**: `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"es-419"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\> #### Inherited from @@ -49,7 +49,7 @@ node\_modules/discord.js/typings/index.d.ts:4493 #### Source -node\_modules/discord.js/typings/index.d.ts:4494 +node\_modules/discord.js/typings/index.d.ts:4712 *** @@ -63,13 +63,13 @@ node\_modules/discord.js/typings/index.d.ts:4494 #### Source -node\_modules/discord.js/typings/index.d.ts:4491 +node\_modules/discord.js/typings/index.d.ts:4709 *** ### nameLocalizations? -> `optional` **nameLocalizations**: `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\> +> `optional` **nameLocalizations**: `Partial`\<`Record`\<`"id"` \| `"en-US"` \| `"en-GB"` \| `"bg"` \| `"zh-CN"` \| `"zh-TW"` \| `"hr"` \| `"cs"` \| `"da"` \| `"nl"` \| `"fi"` \| `"fr"` \| `"de"` \| `"el"` \| `"hi"` \| `"hu"` \| `"it"` \| `"ja"` \| `"ko"` \| `"lt"` \| `"no"` \| `"pl"` \| `"pt-BR"` \| `"ro"` \| `"ru"` \| `"es-ES"` \| `"es-419"` \| `"sv-SE"` \| `"th"` \| `"tr"` \| `"uk"` \| `"vi"`, `null` \| `string`\>\> #### Inherited from @@ -77,7 +77,7 @@ node\_modules/discord.js/typings/index.d.ts:4491 #### Source -node\_modules/discord.js/typings/index.d.ts:4492 +node\_modules/discord.js/typings/index.d.ts:4710 *** @@ -101,7 +101,7 @@ node\_modules/discord.js/typings/index.d.ts:4492 #### Source -node\_modules/discord.js/typings/index.d.ts:4495 +node\_modules/discord.js/typings/index.d.ts:4713 *** diff --git a/src/content/docs/blog/2022-09-28.md b/src/content/docs/blog/2022-09-28.md index 10d476c90..b7c3e0267 100644 --- a/src/content/docs/blog/2022-09-28.md +++ b/src/content/docs/blog/2022-09-28.md @@ -4,6 +4,7 @@ title: Release 1.2.0 authors: [jacoobes] tags: [release] date: 2022-09-28 +pagefind: false --- ## Class-based modules diff --git a/src/content/docs/blog/2022-09-30.md b/src/content/docs/blog/2022-09-30.md index cf9340863..add53ccd7 100644 --- a/src/content/docs/blog/2022-09-30.md +++ b/src/content/docs/blog/2022-09-30.md @@ -4,6 +4,7 @@ title: How to get started with sern! authors: [ethan] tags: [guides] date: 2022-09-30 +pagefind: false --- ## Hello everyone! diff --git a/src/content/docs/blog/2022-12-13.md b/src/content/docs/blog/2022-12-13.md index f092564b9..ff8a9cc67 100644 --- a/src/content/docs/blog/2022-12-13.md +++ b/src/content/docs/blog/2022-12-13.md @@ -4,6 +4,7 @@ title: Release 2.0.0 authors: [jacoobes] tags: [release] date: 2022-12-13 +pagefind: false --- ## 2.0 Release diff --git a/src/content/docs/blog/2023-01-12.md b/src/content/docs/blog/2023-01-12.md index 6e23ec72b..d9537b749 100644 --- a/src/content/docs/blog/2023-01-12.md +++ b/src/content/docs/blog/2023-01-12.md @@ -4,6 +4,7 @@ title: Release 2.5.0 authors: [jacoobes] tags: [release] date: 2023-01-12 +pagefind: false --- ## 2.5 Release diff --git a/src/content/docs/blog/2023-06-18.md b/src/content/docs/blog/2023-06-18.md index e79b03db1..d26af3096 100644 --- a/src/content/docs/blog/2023-06-18.md +++ b/src/content/docs/blog/2023-06-18.md @@ -4,6 +4,7 @@ title: Release 3.0.0 authors: [jacoobes] tags: [release] date: 2023-06-18 +pagefind: false --- ## 3.0 Release diff --git a/src/content/docs/blog/2023-7-4.md b/src/content/docs/blog/2023-7-4.md index 7873cbdb8..aa3836824 100644 --- a/src/content/docs/blog/2023-7-4.md +++ b/src/content/docs/blog/2023-7-4.md @@ -4,6 +4,7 @@ title: New logo! authors: [sern] tags: [branding] date: 2023-07-04 +pagefind: false --- Hey everyone! Today we have very special news for you all: We're changing our logo! diff --git a/src/content/docs/blog/2024-02-23.md b/src/content/docs/blog/2024-02-23.md index b8f3842dd..11a6aaa14 100644 --- a/src/content/docs/blog/2024-02-23.md +++ b/src/content/docs/blog/2024-02-23.md @@ -4,6 +4,7 @@ title: Deploying sern with Railway authors: [duro] tags: [guides] date: 2024-02-23 +pagefind: false --- In this guide, I'll be showing you how to deploy your sern bot with [Railway](https://railway.app/). diff --git a/src/components/Head.astro b/src/overrides/Head.astro similarity index 100% rename from src/components/Head.astro rename to src/overrides/Head.astro diff --git a/src/overrides/SiteTitle.astro b/src/overrides/SiteTitle.astro new file mode 100644 index 000000000..d430aa069 --- /dev/null +++ b/src/overrides/SiteTitle.astro @@ -0,0 +1,70 @@ +--- +// Heavily inspired from https://github.com/tauri-apps/tauri-docs/blob/v2/src/components/overrides/SiteTitle.astro +import StarlightSiteTitle from "@astrojs/starlight/components/SiteTitle.astro"; +import type { Props } from "@astrojs/starlight/props"; + +interface Link { + name: string; + href: string; +} + +const links: Link[] = [ + { + name: "Docs", + href: "/guide/walkthrough/new-project", + }, + { + name: "Plugins", + href: "/plugins", + }, + { + name: "Sponsors", + href: "/sponsors", + }, + { + name: "Blog", + href: "/blog", + }, +]; +--- + +<> + + + + + + + + diff --git a/src/overrides/ThemeSelect.astro b/src/overrides/ThemeSelect.astro new file mode 100644 index 000000000..5e15ad119 --- /dev/null +++ b/src/overrides/ThemeSelect.astro @@ -0,0 +1,6 @@ +--- +import type { Props } from "@astrojs/starlight/props"; +import StarlightThemeSelect from "@astrojs/starlight/components/ThemeSelect.astro"; +--- + +