1
0
Fork 0
Commit graph

21 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
Joost De Cock
e07c04f94a fix(shared): Text color in mdx wrapper 2023-10-14 12:13:42 +02:00
Joost De Cock
a0bcf01b47 chore: Remove lint 2023-10-09 13:47:36 +02:00
Joost De Cock
90afd3e28e feat(org): Switched to better dynamic mdx 2023-10-09 11:42:16 +02:00
joostdecock
9b32d971a5 wip(shared): Taking MDX out of webpack bundle 2023-10-06 09:15:07 +02:00
joostdecock
c65c5876a3 wip(sde): Working on file list 2023-09-29 16:01:27 +02:00
joostdecock
dce1f6a608 chore: Tweaks to MDX metadata display 2023-07-13 21:15:25 +02:00
joostdecock
6a222f254d chore: Linter issues 2023-06-20 19:27:29 +02:00
Enoch Riese
e9d21ddd62 shared components and utils for sanity pages 2023-06-19 16:27:13 -05:00
Enoch Riese
39655daf6a rudimentary implementation of blog pages 2023-06-17 17:00:10 -05:00
Joost De Cock
b3b5d225b8 feat(dev): Re-implemented search 2023-05-24 16:18:59 +02:00
Joost De Cock
7d495d9a43 fix(shared): Bug in git last update component 2023-05-23 11:08:24 +02:00
Joost De Cock
a7193c6a24 fix(dev): Tweaks for mobile 2023-05-22 20:08:57 +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
joostdecock
c11a29e28a chore(shared): Fix linter warnings in sites/shared 2023-05-19 18:15:06 +02:00
joostdecock
c9159d05c6 fix(shared): Tweak opacity for MDX metadata 2023-05-17 10:56:42 +02:00
Joost De Cock
5b12ea49ec feat(shared): Add git info to prebuild step 2023-05-17 10:53:41 +02:00
joostdecock
4fae3a425f feat(dev): Ported dev site to new v3 site framework 2023-05-16 10:34:13 +02:00
joostdecock
9cf7de9a0b wip(shared): Work on MDX wrapper 2023-05-15 20:00:45 +02:00
joostdecock
0b238c989e wip(shared): Switched to webpack loader for MDX 2023-05-15 15:57:46 +02:00
joostdecock
595417a23b feat(org): Ported components to mjs and named exports 2023-01-29 16:44:02 +01:00
Renamed from sites/shared/components/wrappers/mdx.js (Browse further)