-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[docs] Docs restructure #30091
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
The current plan looks great. A few more thoughts:
|
+1 on this one |
🥲 Another migration, but it looks like it should be |
@oliviertassinari Another thought, is it https://mui.com/material-ui/react-modal/ or ? given that we decided to go with "Material UI" without a hyphen. I had this thought after seeing https://headlessui.dev |
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. |
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:
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).
_app.js
to switch between product. [docs] Add script to clone pages #30107docs:api:build
[core] UpdatebuildApi
script to support new structure #30245turns out this one needs no change because thedocs:i18n
translations
directory remains the same 😊docs:typescript:formatted
[core] Updatedocs:typescript:formatted
to support new structure #30248/material/*
for material content. [docs] Redirect old urls to/material/*
when search #30286migration.mui.com
to let ahrefs crawl to make sure that all of the links are working as expected. (need to turnenable_redirects
on)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).
yarn docs:migrate:pages && yarn docs:api
. [docs] Migrate content to the new location #30757yarn docs:migrate:pages && yarn docs:api
. [docs] Migrate content to the new location mui-x#3730What'd happen after running the scripts
docs/src/pages/*
todocs/data/*
. (Both the old & new URLs are using the same demos, markdowns from the new location so we are always using the single source of truth)enable_product_scope: true
is turned on. This enables several things such as E2E tests for the new URLs, buildApi script, and query markdowns from the new location.yarn docs:api
will generate API pages for both previous & new URLs3. New product spaces
Est. mid of Mar.
material
to/material-ui/*
[docs] Usematerial-ui
for product name #31200enable_mui_base
and initialize MUI Base installation page. [docs] Add Base installation page #309694. Go live
Est. 4th April 2022.
5. Clean up
material-redirects.spec
e2e after redirects perioddelete old pages inside
docs/pages/...`replaceHtmlLinks
,replaceUrlLinks
buildApi.ts
parseMarkdown.js
for the API sectioncc @mui-org/core @mui-org/x
The text was updated successfully, but these errors were encountered: