This site is one Astro integration, projectSite(), configured in astro.config.mjs. Edit it to set the name,
the links and the landing page; add pages here, in src/content/docs/docs/.
- Your project’s own markdown folder is mounted under Reference (
externalDocs). - Static apps are served as they are, like the hello app (
mirrors). - One file per item in
src/content/gallery/fills the gallery.
Live examples
Section titled “Live examples”<Live> shows a code block and runs it. The code shown is the code that runs.
<script type="module" src="/apps/live-assets/hello-badge.js"></script><hello-badge name="docs"></hello-badge>In an isolated iframe, and editable:
<script type="module" src="hello-badge.js"></script><hello-badge name="you" tone="orange"></hello-badge><p>Change the name, or try <code>tone="green"</code>.</p>With a custom runner, the source is handed to a module’s run(source, mount, ctx):
{ "palette": { "k": "#23212c", "y": "#f6c945", "w": "#ffffff" }, "fps": 3, "frames": [ [".yyyy.", "yyyyyy", "ywkywk", "yyyyyy", "yykkyy", ".yyyy."], [".yyyy.", "yyyyyy", "ykkykk", "yyyyyy", "yykkyy", ".yyyy."] ]}