-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate website to Docusaurus 2 #3635
Conversation
Preview: https://build-c69e7nasw.now.sh |
Build directory structure
|
Wow, that was fast! Immediate observations: Setup
Styling
All that said, this is a pretty good start! |
That was my initial observation too, BUT it's started to grow on me that the purple should be used more sparingly as an accent, not a base color. In particular, this lets the logo be its natural color, instead of a contrasting, "cut out" style.
It's also missing versioning.
Actually, the bigger problem there is the chevron is quite visually similar to the one below it, despite them being a different levels: So, whatever styling is done there should also apply to the expandability indicator. On that point, the only thing I have big issue with is the font weights on the left hand menu. It's odd having everything of equal weight and size when their action is not the same. That's probably the weakest part of the design right now, IMHO. |
We don't have any versioning on the Redux core site, just React-Redux. Also definitely agree that the categories need better contrast in styles. (As a side note, the versioning for React-Redux's site was frustrating me yesterday. In order to get a new page to show up in the "current" version of 7.1, you have to actually add it to the |
I think the failure from the logs is:
DS v2 changed the build output folder, didn't it? |
Yes, |
Right, and if you look at the RTK repo, I think we've got a https://github.com/reduxjs/redux-toolkit/blob/master/netlify.toml [build]
base = "website"
publish = "website/build"
command = "yarn build" Try copying that over? |
It's strange that the search input does not exist, the configuration is correct. |
Updated |
I'm fixing some styling now! |
This can be a bit complicated and I prefer to keep it for future maintainability. What do you think? |
Okay, now the build is failing because:
|
Oh, another problem: the page titles are getting duplicated. All of our existing Markdown files should have the "don't show the title" attribute or something, but I'm seeing both the title from the front matter and the explicit header tag showing. |
Deploy preview for redux-docs ready! Built with commit 3010ed8 |
Netlify has started to work correctly, thanks for your quick advice! |
@markerikson @timdorr I changed the font color and font weight, what do you think? |
Yeah, I like the padding + round corners for the details, and the sidebar looks better. (Maybe drop the padding at the top of the details a bit?) I'll take another look through the preview and see what sticks out. |
In my opinion, the padding was too much at the bottom than at the top, so I fixed it. What do you think? |
Sure, looks better, and we can always tweak the CSS later if needed. |
Yeah, I will rebase and fix conflict. |
Rebased! |
Start researching search input issue. |
I'm sorry! The config was wrong! Search input are now visible! |
Travis test should pass now. |
Okay, all tests and deploy passed. |
The faq link of footer was incorrect and fixed now. |
Actually, on the topic of styling: I'd like to bring back the current colors for quote blocks in general, and the |
If there is no problem with the current style, I will rebase this. |
The links and descriptions in "Learning Resources / Ecosystem" are fixed, but the front-page bold text is still not spaced correctly. Also, the "Help Us Improve the Redux Docs!" text on the front page should be removed, per #3635 (comment) |
@markerikson Oops, I'm sorry! I forgot that! Fixed everything and bumped dependencies version to latest. |
Okay, getting closer :) More notes:
Having said all that, I'm almost ready to give this a green light. @timdorr , any other feedback? |
Actually all of markerikson's notes is related to https://facebookincubator.github.io/infima/ Even docusaurus side can't do anything about it (unless we hack the CSS (override) which is bad), only infima can fix it. But UI is very subjective. I'm gonna cc the right guy @yangshun |
- Shrank padding and border radius for code snippets - Made category chevrons closed=right and open=down - Added transition for category chevrons - Forced links in code snippets to inherit link color
Awright. Let's do this! |
@imbsky : just to check, do you have a Twitter account? Just want to give proper credit when I let folks know the site conversion is available. |
Yes, I have. @imbskyx |
Thanks again for your review and additional work! |
And thank you for putting this together and dealing with all of my styling nitpicks :) |
👍👍👍 |
Hmm. And as soon as I say that, I'm noting that the RTK docs font size appears to be a bit bigger than the Redux docs font size (17px vs 15px). Any idea why that is? |
I think it's because of https://github.com/reduxjs/redux-toolkit/blob/master/website/src/css/custom.css#L30 |
Looks like it, yeah. Would be nice to fix up any differences between the two sites, including the font size and the chevron behaviors. I think I'd like the 17px font size on both, unless folks have a good reason for it to stay smaller. Anyone want to grab that? |
This removed the Netlify logo I added to the footer in #3656. We are now in violation of their ToS. Can we please add it back? I don't see an easy way to do that now. I'm also really uncomfortable with using an alpha quality project for this right now. Could this have waited for a beta or final release? |
Good question. @imbsky , @endiliey , @yangshun , @wgao19 : how do we add some custom footer stuff now? Also, we need to add those attributions to both the RTK and React-Redux sites. Also, I didn't realize that this PR actually moved all the Markdown content into @timdorr : RTK was converted over already, and looks good so far. This PR has been up for a few weeks, so there's been time to comment. I'm not worried about the "alpha" aspect atm, just need to tweak whatever other small issues pop up. There's also some capabilities in v2 that I want to start using as part of the docs revamp, like MDX content. |
@lex111 : thanks! Can you file a PR to add this to the Redux Toolkit docs also (which are already DS v2 as well)? |
* Migrate website to Docusaurus 2 * Tweak styling to better match original site - Shrank padding and border radius for code snippets - Made category chevrons closed=right and open=down - Added transition for category chevrons - Forced links in code snippets to inherit link color * Restructure index page sales pitch content based on RTK layout Co-authored-by: Mark Erikson <[email protected]> Former-commit-id: c725f09 Former-commit-id: c6e8b6a
* Migrate website to Docusaurus 2 * Tweak styling to better match original site - Shrank padding and border radius for code snippets - Made category chevrons closed=right and open=down - Added transition for category chevrons - Forced links in code snippets to inherit link color * Restructure index page sales pitch content based on RTK layout Co-authored-by: Mark Erikson <[email protected]> Former-commit-id: c725f09 Former-commit-id: c6e8b6a
Context: #3584