Made playground its own page

This commit is contained in:
Ozzie Gooen 2022-04-10 21:48:17 -04:00
parent abb41871d7
commit 531fd06eb7
4 changed files with 21 additions and 18 deletions

View File

@ -1,7 +0,0 @@
---
sidebar_position: 2
---
import { SquigglePlayground } from "../src/components/SquigglePlayground";
<SquigglePlayground initialSquiggleString="normal(0,1)" />

View File

@ -79,12 +79,7 @@ const config = {
label: "Documentation",
},
{ to: "/blog", label: "Blog", position: "left" },
{
type: "doc",
docId: "Playground",
label: "Playground",
position: "left",
},
{ to: "/playground", label: "Playground", position: "left" },
{
href: "https://github.com/QURIresearch/squiggle",
label: "GitHub",

View File

@ -20,11 +20,6 @@ const sidebars = {
id: "Introduction",
label: "Introduction",
},
{
type: "doc",
id: "Playground",
label: "Playground",
},
{
type: "category",
label: "Features",

View File

@ -0,0 +1,20 @@
import React from "react";
import Layout from "@theme/Layout";
import { SquigglePlayground } from "../components/SquigglePlayground";
export default function PlaygroundPage() {
return (
<Layout title="Playground" description="Squiggle Playground">
<div
style={{
maxWidth: 2000,
paddingTop: "3em",
margin: "0 auto",
}}
>
<h2> Squiggle Playground </h2>
<SquigglePlayground initialSquiggleString="normal(0,1)" />
</div>
</Layout>
);
}