summaryrefslogtreecommitdiffstats
path: root/src/utils/hooks/useHeadingsTree.tsx
Commit message (Collapse)AuthorAgeFilesLines
* fix(toc): render on each route change and exclude aside titlesArmand Philippot2022-01-111-7/+20
| | | | | | On subject pages for example, the table of contents was not updated on route change. So I added router.asPath as dependency of useEffect. I also changed the query to exclude all titles in aside (ToC, widgets).
* refactor: avoid useless assignement before return statementArmand Philippot2022-01-041-5/+2
|
* chore: add a table of contentsArmand Philippot2021-12-211-7/+1
|
* chore: add a hook to build headings treeArmand Philippot2021-12-211-0/+100