1
0
Fork 0
Commit graph

17 commits

Author SHA1 Message Date
joostdecock
81831f1dc4 chore(shared): Tweaks to navlinks and allow wide reading view
Having build a documentation system at my job as well as the frontend
for it, it was rather surprised that a surprisingly large proportion of
my colleagues complained that the text was 'too narrow'.

When reading documentation, the horizontal space is constrained to limit
the amount of characters on a line. Long lines make for very hard to
read text, because each time your eyes dart back from the end of the
line to the beginning of the next line, it becomes harder to stay
vertically anchored on the correct line.

It's best practice to limit the line length like this, and so I've
always been doing it. However, after someone at work asked, I added a
toggle to allow the text to fill the available space.

Much to my surprise, this was hailed like some sort of significant
improvement. I still don't think it makes sense, but I've added a
similar checkbox to the docs pages of both dev and org sites anyway.
2024-03-23 17:05:30 +01:00
joostdecock
e8badfc735 chore: Remove lint 2023-11-03 15:41:13 +01:00
joostdecock
2472ab1824 feat(shared): Add dynamic OG images 2023-11-03 15:36:09 +01:00
Joost De Cock
46bce8c63a fix(dev): Add missing namespace 2023-10-17 08:14:15 +02:00
Joost De Cock
a7be257e0f feat(dev): Ported to new mdx loader 2023-10-09 12:29:03 +02:00
joostdecock
32d6e938df wip: Rewrite tutorial for v3 2023-09-28 09:11:06 +02:00
Joost De Cock
78fa37869e chore(shared/dev): Remove use-navigation hook 2023-07-20 08:42:56 +02:00
Joost De Cock
dc05143840 feat(sites): Overhauled prebuild system 2023-07-19 19:08:41 +02:00
joostdecock
3df7367fc7 chore: Linter warnings 2023-07-16 07:27:51 +02:00
joostdecock
b5303e0e63 chore(dev): Use shared layout components for pages 2023-07-15 17:10:28 +02:00
joostdecock
3a5a00fcfe chore(dev): Updated docs page layout 2023-07-15 10:38:10 +02:00
joostdecock
0a8dd5f111 feat(dev/shared): Ported PrevNext component to new nav structure 2023-07-14 09:23:37 +02:00
joostdecock
dce1f6a608 chore: Tweaks to MDX metadata display 2023-07-13 21:15:25 +02:00
joostdecock
0a9e71caf3 feat(shared): Re-implement MDX TOX. Closes #4129 2023-06-17 17:29:28 +02:00
joostdecock
8dff0b8f1b chore(dev): Changed to prebuild and ReadMore 2023-05-21 09:41:20 +02:00
joostdecock
da8d139d90 wip(sites): Prebuild tweaks 2023-05-20 16:56:51 +02:00
joostdecock
a4f192e090 fix(dev): 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 13:22:36 +02:00