-
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathastro.config.ts
More file actions
63 lines (61 loc) · 1.61 KB
/
Copy pathastro.config.ts
File metadata and controls
63 lines (61 loc) · 1.61 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
import starlight from '@astrojs/starlight';
import starlightCatppuccin from '@catppuccin/starlight';
import { defineConfig } from 'astro/config';
import starlightAutoSidebar from 'starlight-auto-sidebar';
const site = 'https://eslint-plugin-package-json.dev';
export default defineConfig({
experimental: {
clientPrerender: true,
},
integrations: [
starlight({
components: {
Head: './src/components/Head.astro',
},
favicon: '/images/favicon.svg',
logo: {
dark: './src/assets/logo/logo-dark.svg',
light: './src/assets/logo/logo-light.svg',
},
plugins: [starlightAutoSidebar(), starlightCatppuccin()],
sidebar: [
{ label: 'Getting Started', slug: 'getting-started' },
{ label: 'Rule List', slug: 'rule-list' },
{
collapsed: true,
items: [{ autogenerate: { collapsed: true, directory: 'rules' } }],
label: 'Rules',
},
{
collapsed: true,
items: [
{
autogenerate: { collapsed: true, directory: 'getting-involved' },
},
],
label: 'Getting Involved',
},
],
social: [
{
href: 'https://github.com/michaelfaith/eslint-plugin-package-json',
icon: 'github',
label: 'GitHub',
},
],
title: 'ESLint Plugin: Package JSON',
}),
],
markdown: { gfm: true },
outDir: './dist-site',
prefetch: {
defaultStrategy: 'hover',
},
publicDir: './site/public',
root: './site',
server: {
port: 3000,
},
site,
srcDir: './site/src',
});