Skip to content
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] Add infrastructure to translate API pages #23726

Closed
wants to merge 36 commits into from

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Nov 25, 2020

A continuation of #23214 (comment).

@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation label Nov 25, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Nov 25, 2020

Details of bundle changes

Generated by 🚫 dangerJS against 51816d2

@oliviertassinari oliviertassinari force-pushed the docs-react-api branch 3 times, most recently from 4a1e58d to b2dcc8c Compare November 25, 2020 23:22
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Nov 25, 2020
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Nov 25, 2020
@oliviertassinari oliviertassinari marked this pull request as ready for review November 25, 2020 23:26
docs/src/pages.ts Outdated Show resolved Hide resolved
@oliviertassinari oliviertassinari changed the title [docs] Create React page to host json API pages [docs] Create React component to host json API pages Nov 25, 2020
@oliviertassinari oliviertassinari requested review from mbrookes and eps1lon and removed request for mbrookes November 25, 2020 23:51
Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit confused about the terminology used for the new components. This looks like it's trying too hard to DRY it out:

  1. TopLayoutApi
  2. TopLayoutDocs
  3. AppLayoutDocs

The linked preview no longer has the feedback UI.

I don't really understand this PR. If it isn't useful on its own then we should extract it. Otherwise we have this piece of code checked-in without purpose.

docs/src/pages.ts Outdated Show resolved Hide resolved
@oliviertassinari

This comment has been minimized.

@eps1lon

This comment has been minimized.

@eps1lon

This comment has been minimized.

@mbrookes

This comment has been minimized.

@oliviertassinari

This comment has been minimized.

@mbrookes

This comment has been minimized.

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Nov 26, 2020
@eps1lon

This comment has been minimized.

@mbrookes

This comment has been minimized.

@oliviertassinari

This comment has been minimized.

@mbrookes

This comment has been minimized.

@oliviertassinari

This comment has been minimized.

@github-actions github-actions bot added PR: out-of-date The pull request has merge conflicts and can't be merged and removed PR: out-of-date The pull request has merge conflicts and can't be merged labels Dec 3, 2020
@oliviertassinari
Copy link
Member Author

@mbrookes I believe it's good to merge now. I would recommend you re-open this pull request with your name, otherwise, the squashed commit might give me the credits.

Comment on lines +182 to +185
// traverse(pages, 'en');
LANGUAGES_SSR.forEach((userLanguage) => {
traverse(pages, userLanguage);
});
Copy link
Member Author

@oliviertassinari oliviertassinari Dec 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To revert before we merge:

Suggested change
// traverse(pages, 'en');
LANGUAGES_SSR.forEach((userLanguage) => {
traverse(pages, userLanguage);
});
traverse(pages, 'en');

@oliviertassinari
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants