Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions packages/website/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import starlight from "@astrojs/starlight";
import vercel from "@astrojs/vercel";
import sentry from "@sentry/astro";
import sentryStarlightTheme, {
monochromeCodeTheme,
} from "@sentry/starlight-theme";
import { defineConfig } from "astro/config";
import Inspect from "vite-plugin-inspect";
import tailwindcss from "@tailwindcss/vite";

import react from "@astrojs/react";

// https://astro.build/config
// Website entry point: homepage remains custom Astro/Tailwind, while /docs is owned by
// Starlight plus the shared Sentry theme and project-specific docs metadata.
export default defineConfig({
site: "https://spotlightjs.com",
vite: {
Expand Down Expand Up @@ -41,8 +45,8 @@ export default defineConfig({
{ icon: "discord", label: "Discord", href: "https://discord.gg/EJjqM3XtXQ" },
{ icon: "github", label: "GitHub", href: "https://github.com/getsentry/spotlight" },
],
plugins: [sentryStarlightTheme()],
components: {
Header: "./src/components/docs/Header.astro",
ThemeProvider: "./src/components/ThemeProvider.astro",
},

Expand Down Expand Up @@ -123,18 +127,19 @@ export default defineConfig({
items: [{ autogenerate: { directory: "docs/reference" } }],
},
],
expressiveCode: {
themes: ["starlight-dark"],
useStarlightUiThemeColors: true,
},
editLink: {
baseUrl:
"https://github.com/getsentry/spotlight/edit/main/packages/website/",
},
customCss: ["./src/tailwind.css", "./src/theme.css"],
customCss: ["./src/tailwind.css"],
}),
react(),
],
markdown: {
shikiConfig: {
theme: monochromeCodeTheme,
},
},
Comment thread
dcramer marked this conversation as resolved.
output: "static",
adapter: vercel(),
});
1 change: 1 addition & 0 deletions packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@astrojs/vercel": "^10.0.7",
"@fontsource/raleway": "catalog:",
"@sentry/astro": "catalog:",
"@sentry/starlight-theme": "^0.3.0",
"@tailwindcss/vite": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ Sentry.init({
// Capture 100% of transactions locally
tracesSampleRate: 1.0,
});
```

### Backend Applications

Expand Down
8 changes: 0 additions & 8 deletions packages/website/src/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,11 @@
}
}

.site-title {
@apply font-raleway text-2xl font-light uppercase tracking-widest text-white;
}

.neon-header {
@apply font-raleway font-light;
word-wrap: break-word;
}

header.header {
@apply bg-black/50 backdrop-blur-xs backdrop-filter;
}

.astro-code {
@apply rounded-xs;
}
55 changes: 0 additions & 55 deletions packages/website/src/theme.css

This file was deleted.

13 changes: 13 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading