mui / material-ui

Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.
https://mui.com/material-ui/
MIT License
93.28k stars 32.12k forks source link

[docs] Docs restructure #30091

Closed siriwatknp closed 2 years ago

siriwatknp commented 2 years ago

From the decision in the Notion, the documentation will be restructured into each product.

Goal

Incrementally and smoothly transition to the new structure by preserving the same DX for the community and maintainers (tests should be added along the way).

The new repo structure: image

Improvements are not the focus of this initiative. However, they can be listed in this issue and prioritized later.

Plan

To achieve a smooth transition, the work is split into 3 phases.

1. Preparation

Prepare E2E tests, migration tool, update scripts and add UI (each PR should be able to merge without affecting the production code, either set as feature flag or exclude from production build).

2.1 Migrate content

At this phase, the new URLs have to be deployed to production so that algolia can crawl and index. However, before algolia finish the indexing I think we should preserve the old URLs (meaning, people still browsing old URLs and won't realize that we are migrating the content).

What'd happen after running the scripts

image

3. New product spaces

Est. mid of Mar.

4. Go live

Est. 4th April 2022.

5. Clean up

cc @mui-org/core @mui-org/x

siriwatknp commented 2 years ago

@danilo-leal @oliviertassinari @mbrookes Can you take a look at the images for product drawer UI (in the description above), does it make sense to you?

mbrookes commented 2 years ago

The button for opening product content is moved to the bottom-right of the page (similar to https://reactjs.org/docs/getting-started.html)

For ReactJS it seems that it's only a FAB at mobile breakpoint where a fixed Nav is no longer practical. I don't think having it placed bottom right permanently (if that's the intention) is good UX.

Even if positioned more conventionally, I'm not sure it will be immediately obvious with just the icon how to navigate between products. Perhaps the docs need a home page?

siriwatknp commented 2 years ago

Perhaps the docs need a home page?

How would that help?

Note: The mobile device is only ~3% from google analytics.

mbrookes commented 2 years ago

How would that help?

By having a top level page that allows for navigation between products, rather than depending on an obscure icon.

Note: The mobile device is only ~3% from google analytics.`

Then why would you chose to optimise for it by using a mobile-first design pattern on desktop? (bottom-right FAB as the primary navigation mechanism for moving between products)

oliviertassinari commented 2 years ago

The current plan looks great. A few more thoughts:

  1. I think that we should move with as small steps as possible. As far as I understand it, we only need two docs to justify doing the restructuring, and the blog post. So we could do two, but anything extra (e.g. 4) would be even better. Now, my point is that I would challenge that delaying the release beyond Q1 2022 for having more docs has an overall positive ROI. Why? Because we wouldn't go to prod as fast as we can, and people tend to forget, and not notice things (we would be eventually in a great state with all the docs created).
  2. I feel that https://mui.com/material-ui/react-modal/ would resonate better than https://mui.com/material/react-modal/. Am I the only one? My main concern is that https://mui.com/x/ works because the full product name is MUI X. But https://mui.com/material/, the product name is not MUI Material (decided to not have developers re-learn the existing brand name). I don't have a strong point of view on this but wanted to raise this potential opportunity in case it resonates with other team members. Related to https://github.com/mui/material-ui/pull/30969#discussion_r801464844
mnajdova commented 2 years ago

I feel that https://mui.com/material-ui/react-modal/ would resonate better than https://mui.com/material/react-modal/. Am I the only one?

+1 on this one

siriwatknp commented 2 years ago

I feel that https://mui.com/material-ui/react-modal/ would resonate better than https://mui.com/material/react-modal/. Am I the only one?

🥲 Another migration, but it looks like it should be mui.com/material-ui/*.

siriwatknp commented 2 years ago

@oliviertassinari Another thought, is it

https://mui.com/material-ui/react-modal/ or https://mui.com/materialui/react-modal/

? given that we decided to go with "Material UI" without a hyphen.

I had this thought after seeing https://headlessui.dev

michaldudak commented 2 years ago

Hyphens are commonly placed in URLs in place of spaces, so even though the name of the library is Material UI, to me it's perfectly fine to have material-ui in the URL.