Skip to content

Commit

Permalink
feat: basic multiple sidebars
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Oct 19, 2024
1 parent 7a90620 commit 57dd002
Show file tree
Hide file tree
Showing 5 changed files with 394 additions and 301 deletions.
161 changes: 86 additions & 75 deletions docs/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,80 +2,91 @@ import { defineConfig } from "@solidjs/start/config";
import { withSolidBase } from "../src/config";

export default defineConfig(
withSolidBase(
{
ssr: true,
server: {
prerender: {
crawlLinks: true,
},
},
},
{
title: "SolidBase",
description: "Solid Start Powered Static Site Generator",
titleTemplate: ":title – SolidBase",
editPath:
"https://github.com/kobaltedev/solidbase/edit/main/docs/src/routes/:path",
socialLinks: {
github: "https://github.com/kobaltedev/solidbase",
discord: "https://discord.com/invite/solidjs",
},
lang: "en",
locales: {
fr: {
label: "French",
},
},
sidebar: {
items: [
{
title: "Overview",
collapsed: false,
items: [
{
title: "Introducation",
link: "/",
},
{
title: "What is SolidBase?",
link: "/about",
},
{
title: "What are we missing?",
link: "/dave",
},
],
},
{
title: "Features",
collapsed: false,
items: [
{
title: "MDX",
link: "/about",
},
{
title: "Code copy",
link: "/about",
},
withSolidBase(
{
ssr: true,
server: {
prerender: {
crawlLinks: true,
},
},
},
{
title: "SolidBase",
description: "Solid Start Powered Static Site Generator",
titleTemplate: ":title – SolidBase",
editPath:
"https://github.com/kobaltedev/solidbase/edit/main/docs/src/routes/:path",
socialLinks: {
github: "https://github.com/kobaltedev/solidbase",
discord: "https://discord.com/invite/solidjs",
},
lang: "en",
locales: {
fr: {
label: "French",
},
},
sidebar: {
"/": {
items: [
{
title: "Overview",
collapsed: false,
items: [
{
title: "Introducation",
link: "/",
},
{
title: "What is SolidBase?",
link: "/about",
},
{
title: "What are we missing?",
link: "/dave",
},
],
},
{
title: "Features",
collapsed: false,
items: [
{
title: "MDX",
link: "/about",
},
{
title: "Code copy",
link: "/about",
},

{
title: "Good styles",
link: "/about",
},
{
title: "Cool team 8)",
link: "/about",
},
{
title: "CLI",
link: "/about",
},
],
},
],
},
},
),
{
title: "Good styles",
link: "/about",
},
{
title: "Cool team 8)",
link: "/about",
},
{
title: "CLI",
link: "/about",
},
],
},
],
},
"/reference": {
items: [
{
title: "Reference",
collapsed: false,
items: [],
},
],
},
},
},
),
);
8 changes: 8 additions & 0 deletions docs/src/routes/reference/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
---

![Beta](../../../assets/beta.png)

# SolidBase Reference

TODO API reference
Loading

0 comments on commit 57dd002

Please sign in to comment.