Skip to content

Commit 3f77fd3

Browse files
authored
db: update links to load actual db docs (#419)
1 parent 3e7c209 commit 3f77fd3

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

src/libraries/db.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { BsCollectionFill } from 'react-icons/bs'
2-
import { VscPreview, VscWand } from 'react-icons/co'
2+
import { VscPreview } from 'react-icons/vsc'
33
import { Library } from '.'
44
import { FaGithub, FaBolt, FaCogs } from 'react-icons/fa'
55
import { BiBookAlt } from 'react-icons/bi'
@@ -27,19 +27,19 @@ export const dbProject = {
2727
colorFrom: `from-orange-500`,
2828
colorTo: `to-orange-700`,
2929
textColor: `text-orange-700`,
30-
frameworks: ['react', 'solid'],
30+
frameworks: ['react', 'vue'],
3131
scarfId: '302d0fef-cb3f-43c6-b45c-f055b9745edb',
3232
defaultDocs: 'overview',
3333
menu: [
34-
// {
35-
// icon: <VscPreview />,
36-
// label: 'Examples',
37-
// to: '/db/latest/docs/framework/react/examples/simple',
38-
// },
3934
{
4035
icon: <BiBookAlt />,
4136
label: 'Docs',
42-
to: `https://github.com/${repo}/blob/main/docs/index.md`,
37+
to: '/db/latest/docs',
38+
},
39+
{
40+
icon: <VscPreview />,
41+
label: 'Examples',
42+
to: '/db/latest/docs/framework/react/examples/todo',
4343
},
4444
{
4545
icon: <FaGithub />,

src/routes/_libraries/db.$version.index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ export default function DBVersionIndex() {
6161
and&nbsp;blazing fast 🔥
6262
</p>
6363
<Link
64-
to="https://github.com/tanstack/db"
64+
to="/$libraryId/$version/docs"
65+
params={{ libraryId: library.id, version }}
6566
className={`py-2 px-4 bg-orange-500 rounded text-white uppercase font-extrabold`}
6667
>
6768
Coming soon &raquo;
@@ -173,8 +174,9 @@ export default function DBVersionIndex() {
173174
</div>
174175
<div>
175176
<Link
176-
to="https://github.com/TanStack/db"
177-
className={`inline-block py-2 px-4 bg-orange-500 rounded text-white uppercase font-extrabold`}
177+
to="/$libraryId/$version/docs"
178+
params={{ libraryId: library.id, version }}
179+
className={`inline-block py-2 px-4 bg-stone-700 rounded text-white uppercase font-extrabold`}
178180
>
179181
Get Started!
180182
</Link>

0 commit comments

Comments
 (0)