Skip to content

Commit 885d3f5

Browse files
committed
docs: switch to Typescript for Astro config, update config for @astrojs/starlight 0.33.0
Upstream broke compatibility. It's easier to fix this kind of thing if we're using Typescript, so switch.
1 parent 0f60093 commit 885d3f5

File tree

3 files changed

+49
-30
lines changed

3 files changed

+49
-30
lines changed

docs/astro.config.mjs renamed to docs/astro.config.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const isLocalPreview = process.env.npm_lifecycle_script === 'astro dev';
77
// https://astro.build/config
88
export default defineConfig({
99
site: 'https://tanka.dev',
10-
base: process.env.PATH_PREFIX,
10+
base: process.env.PATH_PREFIX ?? '/',
1111
trailingSlash: 'always',
1212
integrations: [
1313
starlight({
@@ -27,9 +27,11 @@ export default defineConfig({
2727
title: 'Grafana Tanka',
2828
description:
2929
'Grafana Tanka is the robust configuration utility for your Kubernetes cluster, powered by the Jsonnet language.',
30-
social: {
31-
github: 'https://github.com/grafana/tanka',
32-
},
30+
social: [{
31+
icon: "github",
32+
label: "github",
33+
href: 'https://github.com/grafana/tanka',
34+
}],
3335
logo: {
3436
src: './img/logo.svg',
3537
alt: 'Grafana Tanka logo',

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"typescript": "^5.8.3"
2121
},
2222
"devDependencies": {
23+
"@types/node": "^22.14.1",
2324
"prettier": "^3.5.3"
2425
},
2526
"packageManager": "[email protected]+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"

docs/pnpm-lock.yaml

Lines changed: 42 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)