-
-
Notifications
You must be signed in to change notification settings - Fork 772
/
Copy pathastro.config.mjs
66 lines (65 loc) · 2.1 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
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import starlightTypeDoc, { typeDocSidebarGroup } from "starlight-typedoc";
import react from "@astrojs/react";
import path from "path";
import { nodePolyfills } from "vite-plugin-node-polyfills";
export default defineConfig({
site: "https://jimp-dev.github.io",
base: "jimp",
integrations: [
react(),
starlight({
title: "Jimp",
social: {
github: "https://github.com/jimp-dev/jimp",
},
favicon: "/favicon.png",
components: {
Head: "./src/overwrite-components/head.astro",
},
sidebar: [
{
label: "Docs",
items: [
// Each item here is one entry in the navigation menu.
{ label: "Getting Started", link: "/guides/getting-started/" },
{ label: "Using in Browser", link: "/guides/browser/" },
{ label: "Writing Plugins", link: "/guides/writing-plugins/" },
{ label: "Custom Jimp", link: "/guides/custom-jimp/" },
{ label: "Migrate to v1", link: "/guides/migrate-to-v1/" },
{ label: "WEBP/WASM", link: "/guides/webp/" },
],
},
typeDocSidebarGroup,
],
plugins: [
starlightTypeDoc({
entryPoints: [
"../../packages/jimp/src/index.ts",
"../../packages/jimp/src/fonts.ts",
],
tsconfig: "../../packages/jimp/tsconfig.docs.json",
typeDoc: {
groupOrder: ["Classes", "Functions", "Enumerations", "Variables"],
sort: ["static-first", "alphabetical"],
plugin: [
path.join(
path.dirname(import.meta.url).replace("file:", ""),
"./src/typedoc-plugin.js"
),
"typedoc-plugin-zod",
path.join(
path.dirname(import.meta.url).replace("file:", ""),
"./src/typedoc-zod-extended.js"
),
],
},
}),
],
}),
],
vite: {
plugins: [nodePolyfills({ include: ["buffer"] })],
},
});