forked from thoth-tech/splashkit.io-starlight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
118 lines (111 loc) · 4.62 KB
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import { defineConfig, squooshImageService } from "astro/config";
import starlight from "@astrojs/starlight";
import solidJs from "@astrojs/solid-js";
import react from "@astrojs/react";
import starlightLinksValidator from 'starlight-links-validator';
import sitemap from "@astrojs/sitemap";
// https://astro.build/config
export default defineConfig({
site: 'https://splashkit.io/',
// base: '/splashkit.io-starlight', // if hosted without domain.
// output: "server",
// adapter: netlify(),
integrations: [
starlight({
title: "SplashKit",
description: 'SplashKit is a cross-platform game engine for C, C++ and Objective-C. It provides a simple API for 2D game development.',
components: {
Sidebar: './src/components/Sidebar.astro'
},
plugins: [
starlightLinksValidator({
errorOnRelativeLinks: true,
}),
],
expressiveCode: {
// theme: ["github-dark", "github-light"],
// frames: {
// showCopyToClipboardButton: true,
// },
styleOverrides: { borderRadius: '0.5rem' },
useDarkModeMediaQuery: true,
},
customCss: [
"/src/styles/custom.css",
"/src/styles/background.css",
"/src/styles/cards.css",
],
social: {
github: "https://github.com/splashkit",
youtube: 'https://www.youtube.com/@splashkit7674'
},
favicon: "/images/favicon.svg",
logo: {
src: "./src/assets/favicon.svg",
},
sidebar: [
{
label: "Installation",
collapsed: true,
autogenerate: { directory: "installation", collapsed: true },
// items: [
// { label: "Linux", autogenerate: { directory: "linux", collapsed: true }, attrs: { class: 'linux' } },
// { label: "MacOS", autogenerate: { directory: "macos", collapsed: true }, attrs: { class: 'macos' } },
// { label: "Windows", autogenerate: { directory: "windows", collapsed: true }, attrs: { class: 'windows' } },
// ]
},
{
label: "Troubleshooting",
// items: [
// // Each item here is one entry in the navigation menu.
// { label: 'MacOS', link: '/troubleshoot/macos/mac/' },
// //{ label: 'Windows', link: '/troubleshoot/macOS/mac' },
// ],
collapsed: true,
autogenerate: { directory: "troubleshoot", collapsed: true },
badge: "New",
},
{
label: "Developer Documentation",
autogenerate: { directory: "api", collapsed: false },
},
{
label: "Tutorials and Guides",
collapsed: true,
items: [
{ label: "Overview", link: "guides/" },
{ label: "Using SplashKit", autogenerate: { directory: "guides/Using-SplashKit", collapsed: false } },
{ label: "Animations", autogenerate: { directory: "guides/Animations", collapsed: false } },
{ label: "Audio", autogenerate: { directory: "guides/Audio", collapsed: false } },
{ label: "Camera", autogenerate: { directory: "guides/Camera", collapsed: false } },
{ label: "Graphics", autogenerate: { directory: "guides/Graphics", collapsed: false } },
{ label: "Input", autogenerate: { directory: "guides/Input", collapsed: false } },
{ label: "Interface", autogenerate: { directory: "guides/Interface", collapsed: false } },
{ label: "Json", autogenerate: { directory: "guides/JSON", collapsed: false } },
{ label: "Networking", autogenerate: { directory: "guides/Networking", collapsed: false } },
{ label: "Raspberry GPIO", autogenerate: { directory: "guides/Raspberry-GPIO", collapsed: false } },
{ label: "Resource Bundles", autogenerate: { directory: "guides/Resource-Bundles", collapsed: false } },
{ label: "Sprites", autogenerate: { directory: "guides/Sprites", collapsed: false } },
{ label: "Utilities", autogenerate: { directory: "guides/Utilities", collapsed: false } },
]
// autogenerate: { directory: "guides", collapsed: true },
},
{
label: "Usage Examples",
autogenerate: { directory: "usage-examples", collapsed: true },
},
{
label: "Arcade Hackathon Project",
autogenerate: { directory: "arcade-hackathon-project", collapsed: true },
},
],
}),
solidJs(), sitemap()
],
// Process images with sharp: https://docs.astro.build/en/guides/assets/#using-sharp
image: { service: squooshImageService() },
server: {
host: true,
port: 4322
}
});