-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
84 lines (82 loc) · 2.44 KB
/
astro.config.mjs
File metadata and controls
84 lines (82 loc) · 2.44 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
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
export default defineConfig({
site: "https://microbit-apps.github.io",
base: "/",
integrations: [
starlight({
title: "micro:bit apps",
description: "A collection of engaging applications and tutorials for the BBC micro:bit",
logo: {
light: "./src/assets/lu-logo-light.png",
dark: "./src/assets/lu-logo-dark.png",
},
social: [
{
label: "GitHub",
href: "https://github.com/microbit-apps",
icon: "github",
},
],
head: [
{
tag: "meta",
attrs: {
name: "og:type",
content: "website",
},
},
],
sidebar: [
{
label: "Home",
link: "/",
},
{
label: "Getting Started",
items: [
{ label: "What is the BBC micro:bit?", link: "/getting-started/intro/" },
{ label: "Display shields", link: "/getting-started/display-shields/" },
],
},
{
label: "MicroCode",
items: [
{ label: "MicroCode start", link: "/microcode/start/" },
{ label: "The emotion badge program", link: "/microcode/emotion-badge/" },
{ label: "Create a new program", link: "/microcode/create/" },
{ label: "When an event occurs...", link: "/microcode/when/"},
{ label: "Do an action...", link: "/microcode/do/"}
],
},
{
label: "MicroData",
items: [
{ label: "MicroData start", link: "/microdata/start/" },
{ label: "MicroData guide", link: "/microdata/guide/" },
{ label: "Electro-magnets", link: "/microdata/electromagnet/"}
],
},
{
label: "Extensions",
items: [
{ label: "Display shield extension", link: "/extensions/display-shield-ext/" },
],
},
{
label: "Resources",
items: [
{ label: "Display shield UI", link: "/resources/display-shield-ui"},
{ label: "Troubleshooting", link: "/resources/troubleshooting/" },
{ label: "FAQ", link: "/resources/faq/" },
],
},
],
customCss: ["./src/styles/custom.css"],
}),
],
redirects: {
'/microcode': '/microcode/start',
'/microdata': '/microdata/start',
},
});