-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathastro.config.mjs
More file actions
110 lines (108 loc) Β· 2.91 KB
/
astro.config.mjs
File metadata and controls
110 lines (108 loc) Β· 2.91 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
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
import { defineConfig } from 'astro/config'
import starlight from '@astrojs/starlight'
import starlightLinksValidator from 'starlight-links-validator'
import starlightFullViewMode from 'starlight-fullview-mode'
import mdx from '@astrojs/mdx'
import { PUBLISHED_RFC_SIDEBAR_ITEMS } from './src/data/rfcs.ts'
// https://astro.build/config
export default defineConfig({
site: 'https://interledger.org',
base: '/developers',
integrations: [
starlight({
title: 'Interledger',
description: 'Enable seamless exchange of value across payment networks.',
customCss: [
'./node_modules/@interledger/docs-design-system/src/styles/teal-theme.css',
'./node_modules/@interledger/docs-design-system/src/styles/ilf-docs.css',
'./src/styles/interledger.css',
'./src/styles/atom-one-light.min.css'
],
plugins: [
starlightLinksValidator({
exclude: ['/participation-guidelines']
}),
starlightFullViewMode({ leftSidebarEnabled: false })
],
head: [
{
tag: 'script',
attrs: {
src: '/developers/scripts/highlight.min.js',
defer: true
}
},
{
tag: 'script',
attrs: {
src: '/developers/scripts/init.js',
defer: true
}
},
{
tag: 'script',
attrs: {
defer: true,
'data-website-id': '50d81dd1-bd02-4f82-8a55-34a09ccbbbd9',
src: 'https://uwa.interledger.org/script.js',
'data-domains': 'interledger.org'
}
}
],
components: {
Header: './src/components/Header.astro',
PageSidebar: './src/components/PageSidebar.astro'
},
social: [
{
icon: 'github',
label: 'GitHub',
href: 'https://github.com/interledger'
}
],
sidebar: [
{
label: 'Overview',
link: '/get-started'
},
{
label: 'Get involved',
link: '/get-involved'
},
{
label: 'Specifications',
items: [
...PUBLISHED_RFC_SIDEBAR_ITEMS,
{
label: 'Payment Pointers',
link: 'https://paymentpointers.org',
attrs: {
target: '_blank',
rel: 'noopener noreferrer',
'data-icon': 'external'
}
}
]
}
],
expressiveCode: {
themes: ['github-dark-dimmed'],
styleOverrides: {
borderColor: 'transparent',
borderRadius: 'var(--border-radius)'
},
defaultProps: {
wrap: true
}
}
}),
mdx()
],
redirects: {
'/hacktoberfest': 'https://interledger.org/hacktoberfest',
'/hacktoberfest-2023': 'https://interledger.org/hacktoberfest'
},
server: {
port: 1103
}
})