Skip to content

Commit 80a4988

Browse files
committed
refactor
1 parent bd76df4 commit 80a4988

9 files changed

Lines changed: 32 additions & 27 deletions

File tree

.astro/content-modules.mjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11

22
export default new Map([
33
["src/content/docs/index.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Findex.mdx&astroContentModuleFlag=true")],
4-
["src/content/docs/apps/display-shield-ui.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fapps%2Fdisplay-shield-ui.mdx&astroContentModuleFlag=true")],
5-
["src/content/docs/apps/microcode.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fapps%2Fmicrocode.mdx&astroContentModuleFlag=true")],
6-
["src/content/docs/apps/microdata.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fapps%2Fmicrodata.mdx&astroContentModuleFlag=true")],
74
["src/content/docs/getting-started/display-shields.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fgetting-started%2Fdisplay-shields.mdx&astroContentModuleFlag=true")],
5+
["src/content/docs/microcode/guide.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrocode%2Fguide.mdx&astroContentModuleFlag=true")],
86
["src/content/docs/getting-started/intro.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fgetting-started%2Fintro.mdx&astroContentModuleFlag=true")],
7+
["src/content/docs/microcode/start.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrocode%2Fstart.mdx&astroContentModuleFlag=true")],
8+
["src/content/docs/microdata/start.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrodata%2Fstart.mdx&astroContentModuleFlag=true")],
9+
["src/content/docs/microdata/guide.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fmicrodata%2Fguide.mdx&astroContentModuleFlag=true")],
10+
["src/content/docs/resources/display-shield-ui.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fresources%2Fdisplay-shield-ui.mdx&astroContentModuleFlag=true")],
911
["src/content/docs/extensions/display-shield-ext.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fextensions%2Fdisplay-shield-ext.mdx&astroContentModuleFlag=true")],
1012
["src/content/docs/resources/faq.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fresources%2Ffaq.mdx&astroContentModuleFlag=true")],
1113
["src/content/docs/resources/troubleshooting.mdx", () => import("astro:content-layer-deferred-module?astro%3Acontent-layer-deferred-module=&fileName=src%2Fcontent%2Fdocs%2Fresources%2Ftroubleshooting.mdx&astroContentModuleFlag=true")]]);

.astro/data-store.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

astro.config.mjs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,17 @@ export default defineConfig({
4141
],
4242
},
4343
{
44-
label: "Applications",
44+
label: "MicroCode",
4545
items: [
46-
{ label: "MicroCode", link: "/apps/microcode/" },
47-
{ label: "MicroData", link: "/apps/microdata/" },
48-
{ label: "Display shield UI", link: "/apps/display-shield-ui"}
46+
{ label: "Start", link: "/microcode/start/" },
47+
{ label: "Guide", link: "/microcode/guide/" },
48+
],
49+
},
50+
{
51+
label: "MicroData",
52+
items: [
53+
{ label: "Start", link: "/microdata/start/" },
54+
{ label: "Guide", link: "/microdata/guide/" },
4955
],
5056
},
5157
{
@@ -57,6 +63,7 @@ export default defineConfig({
5763
{
5864
label: "Resources",
5965
items: [
66+
{ label: "Display shield UI", link: "/resources/display-shield-ui"},
6067
{ label: "Troubleshooting", link: "/resources/troubleshooting/" },
6168
{ label: "FAQ", link: "/resources/faq/" },
6269
],

src/content/docs/getting-started/display-shields.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The display shields have a variety of uses:
1010
- they can be used with [MakeCode Arcade](https://arcade.makecode.com/) to create retro-style games
1111
- the [display shield extension](/extensions/display-shield-ext/) for MakeCode for the micro:bit
1212
combines the micro:bit APIs with graphics functions for the display shield
13-
- they can be used with [MicroCode](/apps/microcode/) and [MicroData](/apps/microdata/)
13+
- they can be used with [MicroCode](/microcode/start/) and [MicroData](/microdata/start/)
1414
applications to provide new ways to interact with your micro:bit
1515

1616
Click on the pictures below to explore the different display shields available for the micro:bit.

src/content/docs/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ Micro:bit apps run on the [BBC micro:bit](/getting-started/intro/) and make use
1111
## Featured apps
1212

1313
<CardGrid>
14-
<Card title="MicroCode" link="/apps/microcode/">
14+
<Card title="MicroCode" link="/microcode/start/">
1515
a visual programming environment for beginners
16-
[![microcode](../../assets/microcode-splash.png)](./apps/microcode/)
16+
[![microcode](../../assets/microcode-splash.png)](./microcode/start/)
1717
</Card>
18-
<Card title="MicroData" link="/apps/microdata/">
18+
<Card title="MicroData" link="/microdata/start/">
1919
collect and visualize sensor data from your micro:bit
20-
[![microdata](../../assets/microdata-splash.png)](./apps/microdata/)
20+
[![microdata](../../assets/microdata-splash.png)](./microdata/start/)
2121
</Card>
2222
</CardGrid>
2323

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: MicroCode Guide
3+
description: The MicroCode UI and languages
4+
---

src/content/docs/microcode/start.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ a web browser.
2929
keys to navigate, the A key to select and the B key to back up.
3030
- Download the code to your micro:bit by clicking the "Download" button in the MakeCode editor
3131
and follow the instructions on how to copy MicroCode onto your micro:bit.
32-
- [See the display shield instructions](../display-shield-ui)
32+
- [See the display shield instructions](/resources/display-shield-ui)
3333

3434
## Learn More
3535

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: MicroData Guide
3+
description: The MicroData UI and features
4+
---

src/content/docs/microdata/start.mdx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,7 @@ a web browser.
3232
keys to navigate, the A key to select and the B key to back up.
3333
- Download the code to your micro:bit by clicking the "Download" button in the MakeCode editor
3434
and following instructions on how to copy MicroData onto your micro:bit.
35-
- [See the display shield instructions](../display-shield-ui)
36-
37-
## Working with the display shield
38-
39-
Once you have downloaded the app to your micro:bit, plug it into the display shield.
40-
See the [display shield overview](/getting-started/display-shields/) to see how
41-
the micro:bit fits into the shield.
42-
43-
Most display shields have a built-in battery. Turn on the power switch on the display
44-
shield to power both the shield and the micro:bit.
45-
46-
You can also power the micro:bit and shield directly via USB plugged into the micro:bit
47-
or the display shield.
35+
- [See the display shield instructions](resources/display-shield-ui)
4836

4937
## Learn More
5038

0 commit comments

Comments
 (0)