-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathastro.config.mjs
208 lines (203 loc) · 7.91 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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import react from '@astrojs/react';
import starlightBlog from 'starlight-blog';
// import tailwind from '@astrojs/tailwind';
import mdx from '@astrojs/mdx';
import expressiveCode from "astro-expressive-code";
// import rehypeMermaid from "rehype-mermaid";
// import { defineMiddleware } from "astro:middleware";
// // `context` and `next` are automatically typed
// export const onRequest = defineMiddleware((context, next) => {
// });
export default defineConfig({
// markdown: {
// rehypePlugins: [rehypeMermaid],
// },
output: 'static',
redirects: {
'/client/mediator/': '/mediator/',
'/client/mediator/middleware/': '/mediator/middleware/',
'/client/mediator/extensions/': '/mediator/extensions/',
'/release-notes/client/v30/' : '/release-notes/client/'
},
integrations: [
react(),
// tailwind(),
expressiveCode(),
mdx(),
starlight({
title: 'Shiny.NET',
// tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 2 },
editLink: {
baseUrl: 'https://github.com/shinyorg/documentation/edit/main/'
},
logo: {
src: '/src/assets/logo.svg',
},
social: {
github: 'https://github.com/shinyorg',
twitter: 'https://twitter.com/shinydotnet'
},
plugins:[
starlightBlog({
authors: {
allanritchie: {
name: 'Allan Ritchie',
title: 'One of the guys who builds this',
picture: 'https://avatars.githubusercontent.com/u/1431555', // Images in the `public` directory are supported.
url: 'https://allanritchie.com',
}
}
}),
],
sidebar: [
{
label: 'Client',
items: [
{ label: 'App Builder', link: 'client/appbuilder' },
{ label: 'Architecture', link: 'client/architecture' },
{ label: 'Logging', link: 'client/logging' },
{
label: 'Hosting Models',
items:[
{ label: 'MAUI', link: 'client/hosting/maui' },
{ label: 'Native', link: 'client/hosting/native' },
// { label: 'Uno Platform', link: 'client/hosting/uno' },
{ label: 'Manual', link: 'client/hosting/manual' }
]
},
{
label: 'BluetoothLE',
items:[
{ label: 'Getting Started', link: 'client/ble' },
{ label: 'BLE Manager', link: 'client/ble/manager' },
{ label: 'Peripheral', link: 'client/ble/peripheral' },
{ label: 'Services/Characteristics/Descriptors', link: 'client/ble/gatt' },
{ label: 'Background Operations', link: 'client/ble/background' },
{ label: 'Best Practice/FAQ', link: 'client/ble/best-practices' }
]
},
{
label: 'BluetoothLE Hosting',
items: [
{ label: 'Getting Started', link: 'client/blehosting' },
{ label: 'GATT Service', link: 'client/blehosting/gatt' }
]
},
{
label: 'Jobs',
items:[
{ label: 'Getting Started', link: 'client/jobs/' },
{ label: 'Create a Job', link: 'client/jobs/create' },
{ label: 'Additional Functions', link: 'client/jobs/functions' },
{ label: 'Testing', link: 'client/jobs/testing' },
{ label: 'FAQ', link: 'client/jobs/faq' }
]
},
{
label: 'Locations',
items:[
{ label: 'GPS', link: 'client/locations/gps' },
{ label: 'Geofencing', link: 'client/locations/geofencing' }
]
},
{
label: 'HTTP Transfers',
items: [
{ label: 'How To', link: 'client/httptransfers/' }
]
},
{
label: 'Beacons',
items:[
{ label: 'Ranging', link: 'client/beacons/ranging' },
{ label: 'Monitoring', link: 'client/beacons/monitoring' },
]
},
{
label: 'Local Notifications',
items:[
{ label: 'Getting Started', link: 'client/notifications/' },
{ label: 'Channels', link: 'client/notifications/channels' }
]
},
{
label: 'Push Notifications',
items:[
{ label: 'Getting Started', link: 'client/push/' },
{ label: 'Providers', link: 'client/push/providers/' },
{ label: 'FAQ', link: 'client/push/faq' }
]
},
{
label: 'Other',
items: [
{ label: 'Configuration Extensions', link: 'client/other/configuration' },
{ label: 'Stateful Services', link: 'client/other/statefulservices' },
{ label: 'Startup Services', link: 'client/other/startupservices' },
{ label: 'Lifecycle Hooks', link: 'client/other/lifecyclehooks' }
]
}
],
},
{
label: 'Mediator',
items:[
{ label: 'Introduction', link: 'mediator/' },
{ label: 'Getting Started', link: 'mediator/getting-started' },
{ label: 'Requests', link: 'mediator/requests' },
{ label: 'Commands', link: 'mediator/commands' },
{ label: 'Streams', link: 'mediator/streams' },
{ label: 'Events', link: 'mediator/events' },
{ label: 'Exception Handling', link: 'mediator/exceptionhandlers' },
{ label: 'Request Keys', link: 'mediator/requestkeys' },
{ label: 'Execution Contexts', link: 'mediator/context' },
{ label: 'Advanced', link: 'mediator/advanced' },
{
label: 'Middleware',
items:[
{ label: 'Introduction', link: 'mediator/middleware/' },
{ label: 'Validation', link: 'mediator/middleware/validation' },
{ label: 'Caching', link: 'mediator/middleware/caching' },
{ label: 'Resiliency', link: 'mediator/middleware/resilience' },
{ label: 'Offline', link: 'mediator/middleware/offline' },
{ label: 'Performance Logging', link: 'mediator/middleware/performancelogging' },
{ label: 'Main Thread', link: 'mediator/middleware/mainthread' },
{ label: 'Replay', link: 'mediator/middleware/replay' },
{ label: 'Refresh Timer', link: 'mediator/middleware/refresh' },
{ label: 'Command Scheduling', link: 'mediator/middleware/scheduling' }
]
},
{
label: 'Extensions',
items:[
{ label: 'MAUI', link: 'mediator/extensions/maui' },
{ label: 'Blazor', link: 'mediator/extensions/blazor' },
{ label: 'Uno Platform', link: 'mediator/extensions/unoplatform' },
{ label: 'ASP.NET Core', link: 'mediator/extensions/aspnet' },
{ label: 'HTTP', link: 'mediator/extensions/http' },
{ label: 'Prism', link: 'mediator/extensions/prism' },
{ label: 'Dapper', link: 'mediator/extensions/dapper' },
{ label: 'Sentry', link: 'mediator/extensions/sentry' },
]
},
]
},
{
label: 'Releases',
items:[
{
label: 'Client',
link: 'release-notes/client'
},
{
label: 'Mediator',
link: 'release-notes/mediator'
}
]
}
],
}),
],
});