Merge pull request #223 from QURIresearch/playground-as-own-page
Made playground its own page
This commit is contained in:
commit
cd9b1b260d
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
import { SquigglePlayground } from "../src/components/SquigglePlayground";
|
||||
|
||||
<SquigglePlayground initialSquiggleString="normal(0,1)" />
|
|
@ -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",
|
||||
|
|
|
@ -20,11 +20,6 @@ const sidebars = {
|
|||
id: "Introduction",
|
||||
label: "Introduction",
|
||||
},
|
||||
{
|
||||
type: "doc",
|
||||
id: "Playground",
|
||||
label: "Playground",
|
||||
},
|
||||
{
|
||||
type: "category",
|
||||
label: "Features",
|
||||
|
|
20
packages/website/src/pages/playground.js
Normal file
20
packages/website/src/pages/playground.js
Normal 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>
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user