-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
145 lines (144 loc) · 3.68 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
import { defineConfig, passthroughImageService } from 'astro/config';
import UnoCSS from 'unocss/astro';
import starlight from '@astrojs/starlight';
// https://astro.build/config
export default defineConfig({
// FIXME replace with custom domain and remove base
site: 'https://hotosm.github.io',
base: '/e2e-mapping/',
// Do not use server side rendering
output: 'static',
server: {
host: '0.0.0.0',
port: 3000,
},
// Temp workaround until PNPM bundling `sharp` is fixed
image: {
service: passthroughImageService(),
},
integrations: [
UnoCSS(),
starlight({
title: 'End-to-End Mapping',
logo: {
src: './src/assets/hot-logo-icon.svg',
},
social: {
github: 'https://github.com/hotosm/e2e-mapping',
},
sidebar: [
{
label: '0. Overview',
items: [
{ label: '0a) Intro', slug: '0-overview/a-intro' },
{ label: '0b) Preparation', slug: '0-overview/b-preparation' },
],
translations: {
fr: 'Placeholder',
es: 'Placeholder',
},
},
{
label: '1. Base Imagery',
items: [
{ label: '1a) Drone TM', slug: '1-imagery/a-drone-tm' },
{ label: '1b) OpenAerialMap', slug: '1-imagery/b-oam' },
],
translations: {
fr: 'Placeholder',
es: 'Placeholder',
},
},
{
label: '2. Digitization',
items: [
{
label: '2a) Create Training Data',
slug: '2-digitization/a-ml-training',
},
{
label: '2b) fAIr (AI-Assisted Mapping)',
slug: '2-digitization/b-fair',
},
{
label: '2c) Validate fAIr Output',
slug: '2-digitization/c-ml-validation',
},
],
translations: {
fr: 'Placeholder',
es: 'Placeholder',
},
},
{
label: '3. Field Mapping',
items: [
{
label: '3a) Field Mapping Tasking Manager',
slug: '3-field-map/a-fmtm',
},
{
label: '3b) Merging Data With OSM',
slug: '3-field-map/b-conflation',
},
],
translations: {
fr: 'Placeholder',
es: 'Placeholder',
},
},
{
label: '4. Using Collected Data',
items: [
{
label: '4a) Extraction from OpenStreetMap',
slug: '4-data/a-extract',
},
{ label: '4b) Visualization Tools', slug: '4-data/b-visualize' },
],
translations: {
fr: 'Placeholder',
es: 'Placeholder',
},
},
{
label: 'Extra Resources',
slug: 'resources',
translations: {
fr: 'Placeholder',
es: 'Placeholder',
},
},
{
label: 'Case Studies',
items: [
{ label: '2024-04 Bali', slug: 'case-studies/2024-04-bali' },
{
label: '2024-07 Argentina',
slug: 'case-studies/2024-07-argentina',
},
],
translations: {
fr: 'Placeholder',
es: 'Placeholder',
},
},
],
defaultLocale: 'root',
locales: {
root: {
label: 'English',
lang: 'en',
},
fr: {
label: 'Français',
lang: 'fr',
},
es: {
label: 'Español',
lang: 'es',
},
},
}),
],
});