Skip to content

Commit 489e1cc

Browse files
committed
feat: show links on docs & learn page
1 parent 6708080 commit 489e1cc

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

apps/docs/src/app/docs/[[...slug]]/docs.layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export function DocsLayout({
5454

5555
const docsLayout: DocsLayoutProps = {
5656
...baseOptions,
57-
links: [],
5857
tree,
5958
sidebar: {
6059
banner: (

apps/docs/src/app/learn/[...slug]/learn.layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export function DocsLayout({
2727
const sidebarTree = getLearnSidebarTree(tree, pathname);
2828
const docsLayout: DocsLayoutProps = {
2929
...baseOptions,
30-
links: [],
3130
tree: sidebarTree,
3231
sidebar: {
3332
tabs,

apps/docs/src/hooks/useLayoutOptions.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export const useBaseOptions = () => {
2020
{
2121
icon: <Book />,
2222
text: t('doc'),
23-
url: '/docs/',
23+
url: '/docs',
24+
active: 'nested-url',
2425
},
2526

2627
{
@@ -33,7 +34,7 @@ export const useBaseOptions = () => {
3334
{
3435
icon: <NotebookIcon />,
3536
text: t('learn'),
36-
url: '/learn/',
37+
url: '/learn',
3738
active: 'nested-url',
3839
},
3940
],

0 commit comments

Comments
 (0)