failed attempt at automatic index generation

This commit is contained in:
MapleLeaf
2021-12-30 11:48:14 -06:00
parent c15be04cdb
commit a4bd7736d5
9 changed files with 182 additions and 165 deletions

View File

@@ -1,32 +0,0 @@
import { Link, Outlet } from "remix"
import { SideNav } from "~/components/side-nav"
import { SidebarLayout } from "~/components/sidebar-layout"
import { linkClass } from "~/styles"
export default function Docs() {
return (
<SidebarLayout
sidebar={
<SideNav heading="Guides">
<Link className={linkClass} to="getting-started">
Getting Started
</Link>
<Link className={linkClass} to="embeds">
Embeds
</Link>
<Link className={linkClass} to="buttons">
Buttons
</Link>
<Link className={linkClass} to="select-menus">
Select Menus
</Link>
</SideNav>
}
body={
<section className="prose max-w-none prose-invert prose-h1:font-light flex-1 prose-h1:mb-4 prose-p:my-4 prose-pre:text-[15px] prose-pre:font-monospace prose-h2:font-light h-[200vh]">
<Outlet />
</section>
}
/>
)
}

View File

@@ -1,30 +0,0 @@
---
meta:
title: Getting Started
description: Learn how to get started with Reacord.
---
# Getting Started
welcome
- install it and do the thing
- then do another thing
## here's a code block
```tsx
import React from "react"
function Counter() {
const [count, setCount] = useState(0)
return (
<>
You clicked {count} times
<Button onClick={() => setCount(count + 1)}>Click me</Button>
</>
)
}
```
yeah