Skip to content

Commit 9a5f74b

Browse files
committed
fix layout errors in docs
1 parent 3727528 commit 9a5f74b

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

src/app/docs/page.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import {Guides} from '@/components/Guides';
2-
import {Resources} from '@/components/Resources';
3-
import {HeroPattern} from '@/components/HeroPattern';
1+
import {Guides} from '@/components/Guides'
2+
import {Resources} from '@/components/Resources'
3+
import {HeroPattern} from '@/components/HeroPattern'
44

55
export const metadata = {
66
title: 'Iroh Documentation',
77
description:
88
'Learn about Iroh and how to integrate into your own project.',
9-
};
9+
}
1010

1111
export const sections = [
1212
{title: 'Guides', id: 'guides'},
1313
{title: 'Resources', id: 'resources'},
14-
];
14+
]
1515

16-
<HeroPattern />;
16+
<HeroPattern />
1717

18-
Iroh Documentation
18+
# Iroh Documentation
1919

2020
Iroh is a protocol for syncing bytes of any size, across any number of devices. Use iroh to build smarter, more efficient apps. {{className: 'lead'}}
2121

src/app/docs/sdks/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ Protocol SDKs
1414

1515
The recommended way to interact with the Iroh is by using one of our official Software Development Kits (SDKs). {{className: 'lead'}}
1616

17-
<Libraries />;
17+
<Libraries />

src/components/Navigation.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ export const navigation = [
194194
{title: 'Install', href: '/docs/install'},
195195
{title: 'SDKs', href: '/docs/sdks'},
196196
{title: 'Todo Example', href: '/docs/examples/todos'},
197-
{title: 'File System Example', href: '/docs/examples/todos'},
198-
{title: 'Airdrop Example', href: '/docs/examples/todos'},
197+
{title: 'File System Example', href: '/docs/examples/fs'},
198+
{title: 'Airdrop Example', href: '/docs/examples/airdrop'},
199199
],
200200
},
201201
{title: 'Concepts',

src/components/mdx.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ export {Button} from '@/components/Button';
1212
export {CodeGroup, Code as code, Pre as pre} from '@/components/Code';
1313
import {pathLayout} from './Layout';
1414

15-
export function Wrapper({children}) {
15+
// for some silly reason this _must_ be exported as lower-case "wrapper"
16+
// which irritates the linter. Linter is disabled for the moment
17+
export function wrapper({children}) {
18+
/* eslint-disable react-hooks/rules-of-hooks */
1619
const path = usePathname();
20+
1721
switch (pathLayout(path)) {
1822
case 'docs':
1923
return (

0 commit comments

Comments
 (0)