-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathastro.config.mjs
73 lines (71 loc) · 1.84 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightLinksValidator from 'starlight-links-validator'
import starlightOpenAPI, { openAPISidebarGroups } from 'starlight-openapi';
// https://astro.build/config
export default defineConfig({
site: 'https://dws.identinet.io',
integrations: [
starlight({
title: 'did-web-server',
favicon: '/favicon.svg',
customCss: [
"./src/styles/custom.css"
],
head: [
// Add ICO favicon fallback for Safari.
{
tag: 'link',
attrs: {
rel: 'icon',
href: '/favicon.ico',
sizes: '32x32',
},
},
],
logo: {
light: './src/assets/logo-light.svg',
dark: './src/assets/logo-dark.svg'
},
social: {
github: 'https://github.com/identinet/did-web-server',
"x.com": 'https://x.com/identinet',
},
editLink: {
baseUrl: 'https://github.com/identinet/did-web-server/tree/main/docs/',
},
plugins: [
// Generate the OpenAPI documentation pages.
// Documentation: https://starlight-openapi.vercel.app/configuration/
starlightOpenAPI([
{
base: 'api',
label: 'API',
schema: 'public/openapi.yaml',
collapsed: false,
},
]),
// Validate internal links
// Ocumentation: https://starlight-links-validator.vercel.app/getting-started/
starlightLinksValidator({
exclude: ['/api'],
}),
],
sidebar: [
{ label: 'Introduction', link: '/' },
{ label: 'Getting Started', link: '/getting-started' },
{ label: 'Configuration', link: '/configuration' },
{
label: 'Deployment',
autogenerate: { directory: 'deployment' },
},
{
label: 'DID Management',
autogenerate: { directory: 'did-management' },
},
{ label: 'Congratulations', link: '/congratulations' },
...openAPISidebarGroups
],
}),
],
});