Skip to content

Commit

Permalink
Make changelog top level option
Browse files Browse the repository at this point in the history
  • Loading branch information
Studio384 committed Nov 13, 2024
1 parent bd27f2e commit 3872ddb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
11 changes: 11 additions & 0 deletions docs/src/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ const router = createHashRouter([
element: <Changelog />
}
]
},
{
path: '/changelog',
element: <Docs />,
errorElement: <Error />,
children: [
{
index: true,
element: <Changelog />
}
]
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/Docs/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function DocsNavigation() {
{
title: 'Changelog',
icon: viStar,
link: '/docs/changelog'
link: '/changelog'
}
]
}
Expand Down
9 changes: 9 additions & 0 deletions docs/src/design/layout/LayoutElements/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ export default function Navbar() {
>
Docs
</Button>
<Button
component={NavLink}
to="/changelog"
variant={location?.pathname?.startsWith('/changelog') ? 'solid' : 'plain'}
size="sm"
color={location?.pathname?.startsWith('/changelog') ? 'primary' : 'primary'}
>
Changelog
</Button>
</Stack>
<Stack direction="row" justifyContent="flex-end">
<IconButton size="sm" variant="plain" color="primary" component="a" href="https://github.com/sippy-platform/valkyrie" target="_blank">
Expand Down

0 comments on commit 3872ddb

Please sign in to comment.