aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/hooks
Commit message (Collapse)AuthorAgeFilesLines
* refactor: rewrite Prism hooks and providersArmand Philippot2022-05-197-207/+253
| | | | | It avoid some hydratation errors on project pages (not in article however) and the hooks are now reusable.
* chore: handle settings changeArmand Philippot2022-05-185-0/+125
|
* chore: close toolbar modals on click/focus outsideArmand Philippot2022-05-181-0/+43
|
* chore: add branding animationArmand Philippot2022-05-181-0/+29
|
* chore: listen scroll to hide/show back to top buttonArmand Philippot2022-05-171-0/+15
|
* chore: adjust and complete missing stylesArmand Philippot2022-05-161-0/+60
| | | | | | * add logo to topics pages and links * add Prism styles to articles * and a few other adjustements
* refactor: use custom hook for breadcrumb items and schemaArmand Philippot2022-05-161-0/+106
|
* chore: add Search pageArmand Philippot2022-05-152-1/+25
|
* chore: handle blog paginationArmand Philippot2022-05-131-0/+116
|
* chore: add the Blog index pageArmand Philippot2022-05-131-0/+58
|
* chore: add Project single pagesArmand Philippot2022-05-132-1/+31
|
* chore: add a Contact pageArmand Philippot2022-05-071-1/+7
|
* chore: add homepageArmand Philippot2022-05-031-0/+112
|
* chore: remove old pages, components, helpers and typesArmand Philippot2022-04-292-127/+0
| | | | | Since I'm using new components, I will also rewrite the GraphQL queries so it is easier to start from scratch.
* chore: add a PageLayout componentArmand Philippot2022-04-251-0/+19
|
* chore: add a TableOfContents componentArmand Philippot2022-04-221-0/+153
|
* chore: add a Code componentArmand Philippot2022-04-191-0/+115
|
* chore(toc): exclude comments section for headings listArmand Philippot2022-02-121-1/+1
|
* refactor(project): replace repo api call method with hook and swrArmand Philippot2022-01-241-0/+23
| | | | | | | | | | Instead of using post slug and an environment variable to fetch repo data, I use the given repo in each project MDX file. It allows me to fetch data from another user/organization if needed. To make it work, I no longer provide the full URL in MDX file. The new format is: "User/repo-slug". I also replaced the fetch method with SWR to improve caching and to avoid React complaining about cleanup useEffect.
* 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