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

Test Cloudflare #19

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/data/material/guides/migration-v4/migration-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -2724,7 +2724,7 @@ In some cases, you might want to create multiple styled components in a file ins

### 2. Use [tss-react](https://github.com/garronej/tss-react)

> Note: This API will not work if you are [using `styled-components` as underlying styling engine in place of `@emotion`](https://mui.com/guides/interoperability/#styled-components).
> Note: This API will not work if you are [using `styled-components` as underlying styling engine in place of `@emotion`](/guides/interoperability/#styled-components).

The API is similar to JSS `makeStyles` but, under the hood, it uses `@emotion/react`.
It is also features a much better TypeScript support than v4's `makeStyles`.
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/guides/routing/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ The [example folder](https://github.com/mui/material-ui/tree/HEAD/examples/nextj

- The second version of the adapter is the `Link` component.
This component is styled.
It leverages the [link component of MUI](https://mui.com/components/links/) with `NextLinkComposed`.
It leverages the [link component of MUI](/components/links/) with `NextLinkComposed`.

```tsx
import Link from '../src/Link';
Expand Down
10 changes: 8 additions & 2 deletions docs/packages/markdown/parseMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,14 @@ function createRender(context) {

let finalHref = href;

if (userLanguage !== 'en' && finalHref.indexOf('/') === 0 && finalHref !== '/size-snapshot') {
finalHref = `/${userLanguage}${finalHref}`;
if (
userLanguage !== 'en' &&
href.indexOf('/') === 0 &&
href !== '/size-snapshot' &&
// The blog is not translated
!href.startsWith('/blog/')
) {
finalHref = `/${userLanguage}${href}`;
}

return `<a href="${finalHref}"${more}>${linkText}</a>`;
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/about.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ const emeriti = [
{
name: 'Dmitriy Kovalenko',
github: 'dmtrKovalenko',
twitter: 'dmtrKovalenko',
twitter: 'goose_plus_plus',
title: 'MUI X, date pickers',
location: 'Kharkiv, Ukraine',
locationCountry: 'ua',
Expand Down