Conversation
Netlify deploy previewhttps://deploy-preview-40884--material-ui.netlify.app/ Bundle size report |
zanivan
left a comment
There was a problem hiding this comment.
Overall, it looks great! Just left a comment about the box-shadows. I used the values from Joy UI theme, but no strong opinion on that :)
There was a problem hiding this comment.
Nice 👍 , I changed the primary tag from website to docs as I believe it will most benefit docs users. It saves time to land on a 404 and to be able to use the website navigation right away, e.g. Algolia search.
From what I could test, based on the Next.js docs, simply creating a 404.tsx page is enough to route all of the 404 requests to it. It seems to be working well?! I'd appreciate any insights here if there's more wiring I need to do.
This is true for Next.js's server (local development). The reason this works in our case is because it outputs a 404.html file that is picked up by Netlify: https://docs.netlify.com/routing/redirects/redirect-options/#custom-404-page-handling.
And search looks a bit broken:
Oh, lol, nice. #40957
|
@oliviertassinari — sweet; thanks for jumping to fix the icons within the search! There's an old issue about that (#33731); can we close it by merging this PR after your changes? |
@danilo-leal Ah, ok, yes, it's the same bug. I'm removing this commit from this PR. It deserves its own. |
This reverts commit c694740.
|
@oliviertassinari, quick nudge here to see if you have any other comments? :) |
Signed-off-by: Olivier Tassinari <olivier.tassinari@gmail.com>
|
It looks great 👍 |
|
In the future, we could have custom 404 per docs area, e.g.
But wow, it feels like you need a business of the scale of >200 people for the opportunity cost of this to start to make sense 😄, e.g. https://stripe.com/sefsef vs. https://stripe.com/docs/sefsef is clearly a step up in the UX. |

Closes #31349
Okay, this is a longstanding and quite simple PR. It adds a slightly better-designed 404 page than our standard one. Having something a little bit thoughtful for this scenario adds a lot to communicating our care for attention to detail and polish!
From what I could test, based on the Next.js docs, simply creating a
404.tsxpage is enough to route all of the 404 requests to it. It seems to be working well?! I'd appreciate any insights here if there's more wiring I need to do.Preview: https://deploy-preview-40884--material-ui.netlify.app/material-ui/api/accordion-detailss/