[READ-ONLY] Mirror of https://github.com/bombshell-dev/docs. bomb.sh/docs
0

Configure Feed

Select the types of activity you want to include in your feed.

Add topics (#6)

* feat: add topics plugin

* chore: update site URL

* chore: format

* feat: remove args

authored by

Nate Moore and committed by
GitHub
(Apr 7, 2025, 10:46 PM -0500) 1d6f77cb 06438745

+105 -77
+88 -75
astro.config.mjs
··· 1 1 import starlight from "@astrojs/starlight"; 2 2 // @ts-check 3 3 import { defineConfig } from "astro/config"; 4 + 4 5 import ecTwoSlash from "expressive-code-twoslash"; 6 + import topics from "starlight-sidebar-topics"; 5 7 6 - const site = "https://docs.bomb.sh/"; 8 + const site = "https://bomb.sh/docs/"; 7 9 8 10 // https://astro.build/config 9 11 export default defineConfig({ 10 - site: 'https://docs.bomb.sh/', 11 - base: '/docs', 12 - outDir: './dist/docs/', 13 - integrations: [ 14 - starlight({ 15 - title: "Bombshell", 16 - customCss: [ 17 - // Relative path to your @font-face CSS file. 18 - "./src/fonts/font-face.css", 19 - ], 20 - logo: { 21 - dark: "./src/assets/dark.svg", 22 - light: "./src/assets/light.svg", 23 - }, 24 - components: { 25 - Head: "./src/starlightOverrides/Head.astro", 26 - }, 27 - expressiveCode: { 28 - plugins: [ecTwoSlash()], 29 - }, 30 - editLink: { 31 - baseUrl: "https://github.com/bombshell-dev/clack/docs/edit/main/", 32 - }, 33 - head: [ 34 - { 35 - tag: "meta", 36 - attrs: { 37 - name: "og:image", 38 - content: `${site}og-docs.png`, 39 - }, 40 - }, 41 - { 42 - tag: "meta", 43 - attrs: { 44 - name: "twitter:image", 45 - content: `${site}og-docs.png`, 46 - }, 47 - }, 48 - { 49 - tag: "meta", 50 - attrs: { 51 - name: "twitter:site", 52 - content: "bombshell", 53 - }, 54 - }, 55 - { 56 - tag: "meta", 57 - attrs: { 58 - name: "twitter:creator", 59 - content: "bombshell", 60 - }, 61 - }, 62 - ], 63 - social: { 64 - discord: "https://bomb.sh/chat", 65 - blueSky: "https://bomb.sh/on/bluesky", 66 - github: "https://bomb.sh/on/github", 67 - }, 68 - sidebar: [ 69 - { 70 - label: "Basics", 71 - autogenerate: { directory: "basics" }, 72 - }, 73 - { 74 - label: "Clack", 75 - autogenerate: { directory: "clack" }, 76 - }, 77 - { 78 - label: "Guides", 79 - autogenerate: { directory: "guides" }, 80 - }, 81 - ], 82 - }), 83 - ], 12 + site: "https://bomb.sh/", 13 + base: "/docs", 14 + outDir: "./dist/docs/", 15 + integrations: [ 16 + starlight({ 17 + title: "Bombshell", 18 + customCss: [ 19 + // Relative path to your @font-face CSS file. 20 + "./src/fonts/font-face.css", 21 + ], 22 + logo: { 23 + dark: "./src/assets/dark.svg", 24 + light: "./src/assets/light.svg", 25 + }, 26 + components: { 27 + Head: "./src/starlightOverrides/Head.astro", 28 + }, 29 + expressiveCode: { 30 + plugins: [ecTwoSlash()], 31 + }, 32 + editLink: { 33 + baseUrl: "https://github.com/bombshell-dev/docs/edit/main/", 34 + }, 35 + head: [ 36 + { 37 + tag: "link", 38 + attrs: { 39 + rel: "stylesheet", 40 + href: "https://use.typekit.net/bst3mzh.css?v=4", 41 + }, 42 + }, 43 + { 44 + tag: "meta", 45 + attrs: { 46 + name: "og:image", 47 + content: `${site}og-docs.png`, 48 + }, 49 + }, 50 + { 51 + tag: "meta", 52 + attrs: { 53 + name: "twitter:image", 54 + content: `${site}og-docs.png`, 55 + }, 56 + }, 57 + { 58 + tag: "meta", 59 + attrs: { 60 + name: "twitter:site", 61 + content: "bombshell", 62 + }, 63 + }, 64 + { 65 + tag: "meta", 66 + attrs: { 67 + name: "twitter:creator", 68 + content: "bombshell", 69 + }, 70 + }, 71 + ], 72 + social: { 73 + discord: "https://bomb.sh/chat", 74 + blueSky: "https://bomb.sh/on/bluesky", 75 + github: "https://bomb.sh/on/github", 76 + }, 77 + plugins: [ 78 + topics([ 79 + { 80 + label: "Clack", 81 + id: "clack", 82 + icon: "seti:hex", 83 + link: "/clack/basics/getting-started", 84 + items: [ 85 + { label: "Basics", autogenerate: { directory: "clack/basics" } }, 86 + { 87 + label: "Packages", 88 + autogenerate: { directory: "clack/packages" }, 89 + }, 90 + { label: "Guides", autogenerate: { directory: "clack/guides" } }, 91 + ], 92 + } 93 + ]), 94 + ], 95 + }), 96 + ], 84 97 });
+2 -1
package.json
··· 16 16 "@types/node": "^22.13.11", 17 17 "astro": "^5.1.5", 18 18 "expressive-code-twoslash": "^0.4.0", 19 - "sharp": "^0.33.5" 19 + "sharp": "^0.33.5", 20 + "starlight-sidebar-topics": "^0.6.0" 20 21 }, 21 22 "pnpm": { 22 23 "onlyBuiltDependencies": [
+14
pnpm-lock.yaml
··· 29 29 sharp: 30 30 specifier: ^0.33.5 31 31 version: 0.33.5 32 + starlight-sidebar-topics: 33 + specifier: ^0.6.0 34 + version: 0.6.0(@astrojs/starlight@0.32.4(astro@5.5.4(@types/node@22.13.11)(rollup@4.36.0)(typescript@5.8.2))) 32 35 33 36 packages: 34 37 ··· 1474 1477 1475 1478 space-separated-tokens@2.0.2: 1476 1479 resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==} 1480 + 1481 + starlight-sidebar-topics@0.6.0: 1482 + resolution: {integrity: sha512-ysmOR7zaHYKtk18/mpW4MbEMDioR/ZBsisu9bdQrq0v9BlHWpW7gAdWlqFWO9zdv1P7l0Mo1WKd0wJ0UtqOVEQ==} 1483 + engines: {node: '>=18'} 1484 + peerDependencies: 1485 + '@astrojs/starlight': '>=0.32.0' 1477 1486 1478 1487 stream-replace-string@2.0.0: 1479 1488 resolution: {integrity: sha512-TlnjJ1C0QrmxRNrON00JvaFFlNh5TTG00APw23j74ET7gkQpTASi6/L2fuiav8pzK715HXtUeClpBTw2NPSn6w==} ··· 3816 3825 source-map@0.7.4: {} 3817 3826 3818 3827 space-separated-tokens@2.0.2: {} 3828 + 3829 + starlight-sidebar-topics@0.6.0(@astrojs/starlight@0.32.4(astro@5.5.4(@types/node@22.13.11)(rollup@4.36.0)(typescript@5.8.2))): 3830 + dependencies: 3831 + '@astrojs/starlight': 0.32.4(astro@5.5.4(@types/node@22.13.11)(rollup@4.36.0)(typescript@5.8.2)) 3832 + picomatch: 4.0.2 3819 3833 3820 3834 stream-replace-string@2.0.0: {} 3821 3835
src/content/docs/basics/getting-started.mdx src/content/docs/clack/basics/getting-started.mdx
src/content/docs/clack/core.mdx src/content/docs/clack/packages/core.mdx
src/content/docs/clack/prompts.mdx src/content/docs/clack/packages/prompts.mdx
src/content/docs/guides/best-practices.mdx src/content/docs/clack/guides/best-practices.mdx
src/content/docs/guides/examples.mdx src/content/docs/clack/guides/examples.mdx
+1 -1
src/content/docs/index.mdx
··· 13 13 light: "/src/assets/light.svg" 14 14 actions: 15 15 - text: Get started 16 - link: /docs/basics/getting-started/ 16 + link: /docs/clack/basics/getting-started/ 17 17 icon: right-arrow 18 18 variant: primary 19 19 - text: GitHub repository