Skip to content

Commit

Permalink
chore(deps): update nextra (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue authored Oct 13, 2023
1 parent f4b7e6f commit 7da7e9d
Show file tree
Hide file tree
Showing 5 changed files with 393 additions and 172 deletions.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,10 @@
"ignoreDeps": [],
"dependencyDashboard": true
},
"resolutions": {}
"resolutions": {},
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
13 changes: 13 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/dist/index.js b/dist/index.js
index dc4f8326387c2112da6460500a3bf87a855ac80d..a91209f427b4e34488b0684488e72d16ded66462 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -2177,7 +2177,7 @@ function TOC({ headings, filePath }) {
const config = useConfig();
const tocRef = useRef7(null);
const items = useMemo3(
- () => headings.filter((heading) => heading.depth > 1),
+ () => headings.filter((heading) => heading.depth == 2),
[headings]
);
const hasHeadings = items.length > 0;
Loading

0 comments on commit 7da7e9d

Please sign in to comment.