add playground links to index and getting started page

This commit is contained in:
Moritz Hölting 2024-06-24 11:51:55 +02:00
parent 313fd3d152
commit 9d65a97617
2 changed files with 35 additions and 28 deletions

View File

@ -6,6 +6,10 @@ import { Steps, FileTree } from '@astrojs/starlight/components';
## Installation
:::tip
If you want to try out ShulkerScript without installing anything, you can use the [online playground](../../playground) right in your browser.
:::
To get started with ShulkerScript, you need to install the ShulkerScript CLI.
You can either [download](#download-from-github) the latest release from the GitHub releases page or [build it from source](#building-from-source).

View File

@ -16,23 +16,26 @@ hero:
icon: external
---
import { Card, CardGrid } from '@astrojs/starlight/components';
import { Card, LinkCard, CardGrid } from "@astrojs/starlight/components";
<CardGrid stagger>
<Card title="Simple Syntax" icon="seti:html">
The syntax is similar to other programming languages, making it easy to learn,
while at the same time providing powerful features not found in `.mcfunction` files.
The syntax is similar to other programming languages, making it easy to
learn, while at the same time providing powerful features not found in
`.mcfunction` files.
</Card>
<Card title="Easy Functions" icon="add-document">
Generate multiple function files from a single source file, and call them from Minecraft or other ShulkerScript files.
Generate multiple function files from a single source file, and call
them from Minecraft or other ShulkerScript files.
</Card>
<Card title="Written in Rust" icon="seti:rust">
Fast compile times and a small binary size make ShulkerScript a great choice for your next project.
Fast compile times and a small binary size make ShulkerScript a great
choice for your next project.
</Card>
<Card title="Contribute to this project" icon="github">
Contribute to [the CLI](https://github.com/moritz-hoelting/shulkerscript-cli) or [the compiler](https://github.com/moritz-hoelting/shulkerscript-lang).
Contribute to [the
CLI](https://github.com/moritz-hoelting/shulkerscript-cli) or [the
compiler](https://github.com/moritz-hoelting/shulkerscript-lang).
</Card>
<LinkCard title="Online Playground" href="./playground" description="Get started without downloading anything" />
</CardGrid>