Merge pull request #223 from QURIresearch/playground-as-own-page

Made playground its own page
This commit is contained in:
Ozzie Gooen 2022-04-11 07:09:20 -04:00 committed by GitHub
commit cd9b1b260d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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", label: "Documentation",
}, },
{ to: "/blog", label: "Blog", position: "left" }, { to: "/blog", label: "Blog", position: "left" },
{ { to: "/playground", label: "Playground", position: "left" },
type: "doc",
docId: "Playground",
label: "Playground",
position: "left",
},
{ {
href: "https://github.com/QURIresearch/squiggle", href: "https://github.com/QURIresearch/squiggle",
label: "GitHub", label: "GitHub",

View File

@ -20,11 +20,6 @@ const sidebars = {
id: "Introduction", id: "Introduction",
label: "Introduction", label: "Introduction",
}, },
{
type: "doc",
id: "Playground",
label: "Playground",
},
{ {
type: "category", type: "category",
label: "Features", 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>
);
}