Skip to content

Commit 846f93a

Browse files
committed
add links to source code for each doc page
1 parent 729c3f0 commit 846f93a

4 files changed

Lines changed: 20 additions & 10 deletions

File tree

www/astro.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ export default defineConfig({
1414
label: "💾 Store",
1515
link: "/store",
1616
},
17-
{
18-
label: "🔎 Query",
19-
link: "/query",
20-
},
2117
{
2218
label: "🔎 Scope",
2319
link: "/scope",
2420
},
21+
{
22+
label: "💰 Query",
23+
link: "/query",
24+
},
2525
{
2626
label: "🌊 Stream",
2727
link: "/stream",

www/src/content/docs/query.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
2-
title: Simple Query 🔎
2+
title: 💰 Simple Query
33
description: A simple library to query the DOM from your Astro components.
44
---
55

6-
import { Tabs, TabItem } from '@astrojs/starlight/components';
6+
import { Tabs, TabItem, LinkCard } from '@astrojs/starlight/components';
7+
8+
<LinkCard href="https://github.com/bholmesdev/simplestack-query" title="Source code" />
79

810
A simple library to query the DOM from your Astro components.
911

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
---
2-
title: Simple scope 🔎
2+
title: 🔎 Simple scope
33
description: Get a scoped ID for whatever file you're in. Resolved at build-time with zero client JS.
44
---
55

6+
import { LinkCard } from '@astrojs/starlight/components';
7+
8+
<LinkCard href="https://github.com/bholmesdev/simplestack-scope" title="Source code" />
9+
610
Get a scoped ID for whatever file you're in. Resolved at build-time with zero client JS.
711

812
```jsx
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
---
2-
title: Simple store 💾
2+
title: 💾 Simple store
33
description: A reactive store that combines the simplicity of signals with the power of "selectors" you'd find in Zustand or Redux.
44
---
55

6+
import { LinkCard } from '@astrojs/starlight/components';
7+
8+
<LinkCard href="https://github.com/bholmesdev/simplestack-store" title="Source code" />
9+
610
A reactive store that combines the simplicity of signals with the power of "selectors" you'd find in Zustand or Redux.
711

812
```tsx
@@ -127,8 +131,8 @@ These types are exported for TypeScript users.
127131

128132
- StateObject: `Record<string | number | symbol, any>`
129133
- StatePrimitive: `string | number | boolean | null | undefined`
130-
- Setter<T>: `T | ((state: T) => T)`
131-
- Store<T>:
134+
- Setter: `T | ((state: T) => T)`
135+
- Store:
132136
- `get(): T`
133137
- `set(setter: Setter<T>): void`
134138
- `subscribe(callback: (state: T) => void): () => void`

0 commit comments

Comments
 (0)