Skip to content

Commit

Permalink
fix the next/prev navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
sstraatemans committed Oct 26, 2023
1 parent d0b0c75 commit f3c6a65
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/soft-mice-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kadena/docs': minor
---

next/prev navigation fix
2 changes: 1 addition & 1 deletion packages/apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kadena/docs",
"version": "0.3.1",
"version": "0.3.2",
"private": true,
"scripts": {
"7d": "npx 7d pinecone-create-index --index kda-docs --environment asia-northeast1-gcp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const createNavigation = (file) => {
const flatData = getFlatData();

const itemIdx = flatData.findIndex((i) => {
return i && i.root === path;
return i && (i.root === path || `${i.root}/` === path);
});

return {
Expand Down

0 comments on commit f3c6a65

Please sign in to comment.