1
0
Fork 0
Commit graph

15 commits

Author SHA1 Message Date
joostdecock
8ea11d6abe Merge branch 'eriese-mdx-posts' of github.com:eriese/freesewing into eriese-eriese-mdx-posts 2023-07-21 10:51:44 +02:00
Joost De Cock
a5f0e00936 chore(org): Remove use-navigation hook 2023-07-20 08:52:50 +02:00
Enoch Riese
b7fcd80cae document #4507 2023-07-19 21:11:59 -06:00
Enoch Riese
5cb68f50de deepscan fixes 2023-07-18 23:27:10 -06:00
Enoch Riese
36b28a8f93 lint fixes 2023-07-18 23:14:09 -06:00
Enoch Riese
9e1431d554 convert blog and showcase pages to dynamic mdx loading 2023-07-17 20:10:08 -05:00
Enoch Riese
49e085b271 lint fixes 2023-07-17 12:17:23 -05:00
Enoch Riese
8a4c558cee more contained fixes to docs 2023-07-17 11:40:45 -05:00
joostdecock
5a9f2f8d40 wip(shared): Changes to layouts
This will break the org build, but we need to rip out sanity anyway so
I don't think it's worth obsessing over it now.

I've essentially changes the default layout and added a new navigation
component.
2023-07-15 16:55:22 +02:00
joostdecock
cfbdf7dac8 fix(org): Bring back table of contents 2023-06-17 17:49:58 +02:00
joostdecock
7da253b09d fix(org): Names export, not default export 2023-05-21 20:09:16 +02:00
joostdecock
816dd973ac fix(org): Outdated filename on import 2023-05-21 19:55:57 +02:00
joostdecock
ea8d540305 feat(org): Added sitemap 2023-05-21 09:58:59 +02:00
joostdecock
4a5b80afe4 chore(org): Linter fixes 2023-05-20 14:28:15 +02:00
joostdecock
e2bf337bb2 fix(org): Load MDX dynamically to reduce the number of routes
Prior to this commit we'd generate a page for each MDX document as that
avoids having to load MDX dynamically (which can be tricky) or through
static props (which causes issues with serialization).

However, Vercel (which hosts for us) has an upper limit on the number of
routes, and because of this extensive documentation, we blew passed it
with this approach.

This changes to a dynamic resolution of MDX content with an async import
in the useEffect hook. This should drastically reduce the number of
routes and make Vercel happy.

I didn't do much digging into the effects of this on SSR. If it turns
out it's causes issues, we'll deal with it at that time.
2023-05-20 14:06:39 +02:00