Create sidebar tree

This commit is contained in:
Sam Nolan 2022-04-11 10:13:11 +10:00
parent eeb6243bc4
commit da9ee2aaee
6 changed files with 34 additions and 3 deletions

View File

@ -2,7 +2,7 @@
sidebar_position: 7
---
import { SquiggleEditor } from "../src/components/SquiggleEditor";
import { SquiggleEditor } from "../../src/components/SquiggleEditor";
# Squiggle Functions Reference

View File

@ -2,7 +2,7 @@
sidebar_position: 2
---
import { SquiggleEditor } from "../src/components/SquiggleEditor";
import { SquiggleEditor } from "../../src/components/SquiggleEditor";
# Squiggle Language

View File

@ -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
/*