tools for building gleam projects with nix
1// SPDX-FileCopyrightText: 2025 Ruby Iris Juric <ruby@srxl.me>
2//
3// SPDX-License-Identifier: 0BSD
4
5// @ts-check
6import { defineConfig } from "astro/config";
7import starlight from "@astrojs/starlight";
8import catppuccin from "@catppuccin/starlight";
9import shellSession from "@robot-inventor/shell-session-syntax";
10
11// https://astro.build/config
12export default defineConfig({
13 site: "https://gleam2nix.foxgirl.engineering",
14
15 integrations: [
16 starlight({
17 title: "gleam2nix",
18 social: [
19 {
20 icon: "seti:git",
21 label: "source code",
22 href: "https://git.isincredibly.gay/srxl/gleam2nix",
23 },
24 ],
25 sidebar: [
26 {
27 label: "guides",
28 autogenerate: { directory: "guides" },
29 },
30 {
31 label: "reference",
32 items: [
33 "reference/gleam2nix",
34 "reference/buildgleamapplication",
35 "reference/buildgleam",
36 {
37 slug: "reference/gleam-tool",
38 badge: {
39 text: "internal",
40 variant: "danger",
41 },
42 },
43 ],
44 },
45 ],
46 plugins: [
47 catppuccin({
48 dark: { flavor: "frappe", accent: "pink" },
49 light: { flavor: "latte", accent: "pink" },
50 }),
51 ],
52 expressiveCode: {
53 shiki: {
54 langs: [shellSession],
55 },
56 themes: ["catppuccin-frappe", "catppuccin-latte"],
57 },
58 }),
59 ],
60});