-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathastro.config.js
More file actions
76 lines (74 loc) · 2.55 KB
/
Copy pathastro.config.js
File metadata and controls
76 lines (74 loc) · 2.55 KB
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
import starlight from '@astrojs/starlight';
import starlightClientMermaid from '@pasqal-io/starlight-client-mermaid';
import astroBrokenLinksChecker from 'astro-broken-link-checker';
import { defineConfig } from 'astro/config';
// https://astro.build/config
export default defineConfig({
base: '/',
integrations: [
astroBrokenLinksChecker({
checkExternalLinks: false, // External link checking is slow without disk caching
logFilePath: 'broken-links.log',
throwError: true, // Fail the build if broken links are found
}),
starlight({
customCss: ['./site/src/styles/custom.css'],
description: 'A full-ass benchmarking framework for Node.js',
logo: {
src: './assets/logo-no-text-64.png',
},
plugins: [starlightClientMermaid()],
sidebar: [
{ label: 'Getting Started', link: '/getting-started/' },
{
items: [
{ label: 'Configuration', link: '/guides/configuration/' },
{ label: 'CLI Reference', link: '/guides/cli/' },
{ label: 'Output Formats', link: '/guides/output/' },
{ label: 'Understanding Statistics', link: '/guides/statistics/' },
{
label: 'Performance Budgets',
link: '/guides/performance-budgets/',
},
{ label: 'Profiling', link: '/guides/profiling/' },
{ label: 'Test Adapters', link: '/guides/test-adapters/' },
{ label: 'Advanced Usage', link: '/guides/advanced/' },
{ label: 'Custom Reporters', link: '/guides/custom-reporters/' },
],
label: 'Guides',
},
{
items: [
{ label: 'API Documentation', link: '/reference/api/' },
{ label: 'Reporter API', link: '/reference/reporter-api/' },
{ label: 'Architecture', link: '/reference/architecture/' },
{ label: 'Contributing', link: '/reference/contributing/' },
{ label: 'Error Reference', link: '/reference/errors/' },
],
label: 'Reference',
},
],
social: [
{
href: 'https://github.com/boneskull/modestbench',
icon: 'github',
label: 'GitHub',
},
],
title: 'modestbench',
}),
],
outDir: './docs',
publicDir: './public',
site: 'https://modestbench.dev',
srcDir: './site/src',
// see https://github.com/withastro/astro/issues/14117#issuecomment-3117797751
vite: {
optimizeDeps: {
include: ['asciinema-player'],
},
ssr: {
noExternal: ['zod'],
},
},
});