···54545555Files without a category will be always be shown first.
56565757+You can also put your files in subfolders, these are just for organization and will not affect the order of the docs.
5858+5759## Links
58605961All relative links should start with `/BASE/docs/`
···11+---
22+title: "Asides"
33+description: "How to show asides in your documentation"
44+category: "Components"
55+---
66+77+# Asides
88+99+Asides are a way to show additional information in your documentation.
1010+1111+```jsx
1212+import ErrorAside from "$components/asides/ErrorAside.astro";
1313+1414+<ErrorAside title="This is an error aside">
1515+ This is an error aside.
1616+</ErrorAside>
1717+```
1818+1919+### Result:
2020+2121+import ErrorAside from "$components/asides/ErrorAside.astro";
2222+import WarningAside from "$components/asides/WarningAside.astro";
2323+import SuccessAside from "$components/asides/SuccessAside.astro";
2424+import InfoAside from "$components/asides/InfoAside.astro";
2525+2626+<ErrorAside title="This is an error aside">
2727+ This is an error aside.
2828+</ErrorAside>
2929+3030+There are 4 different asides:
3131+3232+- `ErrorAside`
3333+- `WarningAside`
3434+- `SuccessAside`
3535+- `InfoAside`
3636+3737+<ErrorAside title="This is an error aside">
3838+ This is an error aside.
3939+</ErrorAside>
4040+4141+<WarningAside title="This is a warning aside">
4242+ This is a warning aside.
4343+</WarningAside>
4444+4545+<SuccessAside title="This is a success aside">
4646+ This is a success aside.
4747+</SuccessAside>
4848+4949+<InfoAside title="This is an info aside">
5050+ This is an info aside.
5151+</InfoAside>
5252+5353+
···22title: "Code and Math"
33description: "How to show inline and multiline code and math in your documentation"
44category: "Components"
55+order: 1
56---
6778# Code
···1415this is some `inline code`
1516```
16171818+### Result:
1919+1720this is some `inline code`
18211922## Multiline Code
20232124Write multiline code like this (specify the language for syntax highlighting):
22252323-import { Code } from "astro:components";
24262525-<Code lang="mdx" code={`\`\`\`js
2727+````mdx
2828+```js
2629console.log("this is some code");
2727-\`\`\`
2828-`} />
3030+```
3131+````
3232+3333+### Result:
29343035```js
3136console.log("this is some code");
···3944Inline math: $a_x = x^2$
4045```
41464747+### Result:
4848+4249Inline math: $a_x = x^2$
43504451Write block math like this:
···4855\int_0^\infty \frac{x^3}{e^x} \, dx
4956$$
5057```
5858+5959+### Result:
51605261$$
5362\int_0^\infty \frac{x^3}{e^x} \, dx
···1212```astro
1313import Sandbox from "$components/sandbox/";
14141515-<Sandbox folder="example1" active="Counter.js" />
1515+<Sandbox folder="example1" active="Counter.js" template="react" />
1616```
17171818+### Result:
18191920import Sandbox from "$components/sandbox/";
20212121-<Sandbox folder="example1" active="Counter.js" />
2222+<Sandbox folder="example1" active="Counter.js" template="react" />
22232323-Your folder **must** be in the `src/examples` folder.
2424+Your folder **must** be in the `src/examples` folder, either just use the name of the folder or use the full path (e.g. `/src/examples/example1`).
24252526The `active` file is the file that will be shown when the sandbox is opened.
2627