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 ## 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. 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). 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

@ -3,36 +3,39 @@ title: Welcome to the ShulkerScript docs
description: Get started writing your datapacks with ShulkerScript description: Get started writing your datapacks with ShulkerScript
template: splash template: splash
hero: hero:
tagline: Intro to getting started with ShulkerScript tagline: Intro to getting started with ShulkerScript
image: image:
file: ../../assets/logo.webp file: ../../assets/logo.webp
actions: actions:
- text: Get started - text: Get started
link: guides/getting-started/ link: guides/getting-started/
icon: right-arrow icon: right-arrow
variant: primary variant: primary
- text: Contribute - text: Contribute
link: https://github.com/moritz-hoelting/shulkerscript-cli link: https://github.com/moritz-hoelting/shulkerscript-cli
icon: external icon: external
--- ---
import { Card, CardGrid } from '@astrojs/starlight/components'; import { Card, LinkCard, CardGrid } from "@astrojs/starlight/components";
<CardGrid stagger> <CardGrid stagger>
<Card title="Simple Syntax" icon="seti:html"> <Card title="Simple Syntax" icon="seti:html">
The syntax is similar to other programming languages, making it easy to learn, The syntax is similar to other programming languages, making it easy to
while at the same time providing powerful features not found in `.mcfunction` files. learn, while at the same time providing powerful features not found in
</Card> `.mcfunction` files.
<Card title="Easy Functions" icon="add-document"> </Card>
Generate multiple function files from a single source file, and call them from Minecraft or other ShulkerScript files. <Card title="Easy Functions" icon="add-document">
</Card> Generate multiple function files from a single source file, and call
<Card title="Written in Rust" icon="seti:rust"> them from Minecraft or other ShulkerScript files.
Fast compile times and a small binary size make ShulkerScript a great choice for your next project. </Card>
</Card> <Card title="Written in Rust" icon="seti:rust">
<Card title="Contribute to this project" icon="github"> Fast compile times and a small binary size make ShulkerScript a great
Contribute to [the CLI](https://github.com/moritz-hoelting/shulkerscript-cli) or [the compiler](https://github.com/moritz-hoelting/shulkerscript-lang). choice for your next project.
</Card> </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).
</Card>
<LinkCard title="Online Playground" href="./playground" description="Get started without downloading anything" />
</CardGrid> </CardGrid>