Skip to content

Commit

Permalink
client-only table of contents + scaffold default theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Oct 3, 2024
1 parent 062f83d commit 4c96bea
Show file tree
Hide file tree
Showing 10 changed files with 4,581 additions and 3,093 deletions.
3 changes: 3 additions & 0 deletions docs/src/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
margin: 0;
}
35 changes: 15 additions & 20 deletions docs/src/app.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
import {
SolidBaseApp,
SolidBaseLayout,
SolidBaseProvider,
} from "@kobalte/solidbase/client";
import { SolidBaseApp } from "@kobalte/solidbase/client";
import { Title } from "@solidjs/meta";
import { Router } from "@solidjs/router";
import { FileRoutes } from "@solidjs/start/router";
import { Suspense } from "solid-js";

import "./app.css";

export default function App() {
return (
<SolidBaseApp
layout={(props) => {
return (
<>
<Title>I am the captain now</Title>
{props.children}
</>
);
}}
/>
);
return (
<SolidBaseApp
// layout={(props) => {
// return (
// <>
// <Title>I am the captain now</Title>
// {props.children}
// </>
// );
// }}
/>
);
}
6 changes: 0 additions & 6 deletions docs/src/routes/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
title: Test
---

# Heading 1

## Heading 2
Expand Down Expand Up @@ -31,5 +27,3 @@ _Italic_
```
pnpm create solid
```

Title as defined by frontmatter: {frontmatter.title}
12 changes: 6 additions & 6 deletions docs/src/solidbase-components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { ParentProps } from "solid-js";

export default function Header(props: ParentProps<{}>) {
return (
<header>
<p>Override</p>
{props.children}
</header>
);
return (
<header style={{ "border-bottom": "1px solid gray" }}>
<p>Override</p>
{props.children}
</header>
);
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"@vinxi/plugin-mdx": "^3.7.2",
"estree-util-value-to-estree": "^3.1.2",
"gray-matter": "^4.0.3",
"rehype-slug": "^6.0.0",
"remark-frontmatter": "^5.0.0",
"remark-mdx-frontmatter": "^5.0.0",
"solid-mdx": "^0.0.7",
Expand Down
Loading

0 comments on commit 4c96bea

Please sign in to comment.