Closed abizek closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
nodejs-org | ✅ Ready (Inspect) | Visit Preview | May 25, 2024 1:16pm |
fast tracking this bug fix - it's small, tested, and the broken behavior is sorta ugly in a small way
This PR seems to offer a (competing/similar?) approach https://github.com/nodejs/nodejs.org/pull/6728
great catch @mikeesto - i suppose we should compare which is best
I didn't see that, nice catch @mikeesto. IMO, #6728's approach is better.
@abizek appreciate your understanding here! will be closing this - hope you will continue to find ways to contribute
Hey @bmuenzenmeyer, sorry for the misunderstanding here. The digit regex only fixes the first link - https://nodejs.org/en/learn/getting-started/ecmascript-2015-es6-and-beyond. The other three cannot be fixed by it. I fixed both problems since belonged to the same category.
Let me know what you decide, I can revert just the regex changes in my PR if needed.
haha yea - it looks like we need to slow down here - thanks 😄
looking for consensus on this plan:
cc @TenzDelek @abizek @ovflowd @AugustinMauroy @mikeesto
looking for consensus on this plan:
apply regex solution from https://github.com/nodejs/nodejs.org/pull/6728
cc @TenzDelek @abizek @ovflowd @AugustinMauroy @mikeesto
+1 from me. Haha, looks like I overlooked the part where nodepath is not path which I believe @abizek cover in this pr. You can close my pr🤝 Overall it was great to learn about unit test thanks to @AugustinMauroy . Will try to contribute another time in future
+1 for @TenzDelek pr with mixing both of solution. it's the first to arrive
+1 for applying regex solution from @TenzDelek
haha yea - it looks like we need to slow down here - thanks 😄
Yes, we shouldn't fast track this PR, small changes, but that touch a lot of stuff 😅
but that touch a lot of stuff
Does it though? It's only breadcrumbs.
but that touch a lot of stuff
Does it though? It's only breadcrumbs.
Yes, it touches the breadcrumbs of every single page. That's my definition of "touching a lot of stuff" 😅
Lighthouse Results URL | Performance | Accessibility | Best Practices | SEO | Report |
---|---|---|---|---|---|
/en | 🟢 92 | 🟢 100 | 🟢 100 | 🟢 91 | 🔗 |
/en/about | 🟢 99 | 🟢 100 | 🟢 100 | 🟢 91 | 🔗 |
/en/about/previous-releases | 🟢 99 | 🟢 100 | 🟢 100 | 🟢 92 | 🔗 |
/en/download | 🟢 94 | 🟢 100 | 🟢 100 | 🟢 91 | 🔗 |
/en/blog | 🟢 98 | 🟢 100 | 🟢 100 | 🟢 92 | 🔗 |
@ovflowd gently nudging you in case you missed it 😄 https://github.com/nodejs/nodejs.org/pull/6729#discussion_r1608211020
@abizek are you going to make the changes we talked about?
@ovflowd I missed it. Done now. I understood what you said just now. There were too many ands and pluses :sweat_smile:. Pushing now.
@abizek can I ask you to do a last double-check on all about/learn pages that the breadcrumbs are working? 🙇
All systems are nominal. We are good to go. :+1: @ovflowd
All systems are nominal. We are good to go. 👍 @ovflowd
Beam me up, Scotty!
Description
Uses link = pathname check as a fallback for finding breadcrumbs in the navigation tree where the label does not match the path.
Consider the article "event-loop-timers-and-nexttick" where the label is "The Nodejs Event loop". Breadcrumbs cannot be found in the navigation tree. Of course we can always change the article name to match the label but what about the article "discover-javascript-timers"? Why, there is no problem here! Except there is. The "s" in JavaScript is capitalized. (Shocking, I know. I learned this today). "JavaScript" cannot be written as "java-script" in dash-case. Is it javascript or a script written in Java?
Previously docs should have the same article name and label for the breadcrumbs to work. Now it is not necessary. Unless a deeply nested document structure is adopted. In which case we have to DFS the navigation tree.
These four articles faced this breadcrumb issue:
Validation
Related Issues
Related to #6679
Check List
npm run format
to ensure the code follows the style guide.npm run test
to check if all tests are passing.npx turbo build
to check if the website builds without errors.