diff --git a/packages/website/docs/Future-Features.md b/packages/website/docs/Discussions/Future-Features.md similarity index 100% rename from packages/website/docs/Future-Features.md rename to packages/website/docs/Discussions/Future-Features.md diff --git a/packages/website/docs/Three-Types-Of-Distributions.md b/packages/website/docs/Discussions/Three-Types-Of-Distributions.md similarity index 100% rename from packages/website/docs/Three-Types-Of-Distributions.md rename to packages/website/docs/Discussions/Three-Types-Of-Distributions.md diff --git a/packages/website/docs/Functions.mdx b/packages/website/docs/Features/Functions.mdx similarity index 98% rename from packages/website/docs/Functions.mdx rename to packages/website/docs/Features/Functions.mdx index 157cd381..95b4af68 100644 --- a/packages/website/docs/Functions.mdx +++ b/packages/website/docs/Features/Functions.mdx @@ -2,7 +2,7 @@ sidebar_position: 7 --- -import { SquiggleEditor } from "../src/components/SquiggleEditor"; +import { SquiggleEditor } from "../../src/components/SquiggleEditor"; # Squiggle Functions Reference diff --git a/packages/website/docs/Javscript-library.md b/packages/website/docs/Features/Javscript-library.md similarity index 100% rename from packages/website/docs/Javscript-library.md rename to packages/website/docs/Features/Javscript-library.md diff --git a/packages/website/docs/Language.mdx b/packages/website/docs/Features/Language.mdx similarity index 92% rename from packages/website/docs/Language.mdx rename to packages/website/docs/Features/Language.mdx index 7ec07422..e559fb60 100644 --- a/packages/website/docs/Language.mdx +++ b/packages/website/docs/Features/Language.mdx @@ -2,7 +2,7 @@ sidebar_position: 2 --- -import { SquiggleEditor } from "../src/components/SquiggleEditor"; +import { SquiggleEditor } from "../../src/components/SquiggleEditor"; # Squiggle Language diff --git a/packages/website/sidebars.js b/packages/website/sidebars.js index 96621506..cbfa1a5f 100644 --- a/packages/website/sidebars.js +++ b/packages/website/sidebars.js @@ -14,7 +14,38 @@ /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ const sidebars = { // By default, Docusaurus generates a sidebar from the docs folder structure - tutorialSidebar: [{ type: "autogenerated", dirName: "." }], + tutorialSidebar: [ + { + type: 'doc', + id: 'Introduction', + label: 'Introduction' + }, + { + type: 'doc', + id: 'Playground', + label: 'Playground' + }, + { + type: 'category', + label: 'Features', + items: [ + { + type: 'autogenerated', + dirName: 'Features' + } + ] + }, + { + type: 'category', + label: 'Discussions', + items: [ + { + type: 'autogenerated', + dirName: 'Discussions', + }, + ] + } + ] // But you can create a sidebar manually /*