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

[core] Misc of improvements #13271

Merged
merged 2 commits into from
Oct 17, 2018
Merged
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/src/pages/customization/css-in-js/JssRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles';
import CssInJs from './CssInJs';

const sheetsRegistry = new SheetsRegistry();
const theme = createMuiTheme();
const theme = createMuiTheme({ typography: { useNextVariants: true } });

class JssRegistry extends React.Component {
state = {
Expand Down
10 changes: 5 additions & 5 deletions docs/src/pages/customization/overrides/overrides.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

<p class="description">As components can be used in different contexts, Material-UI supports different types of customization requirements going from the most specific to the most generic.</p>

1. [Specific variation for a one-time situation](#1-specific-variation-for-a-one-time-situation)
1. [Dynamic variation for a one-time situation](#2-dynamic-variation-for-a-one-time-situation)
1. [Specific variation of a component](#3-specific-variation-of-a-component) re-used in different contexts
1. [Material Design variations](#4-material-design-variations) such as with the button component
1. [Global theme variation](#5-global-theme-variation)
1. [Specific variation for a one-time situation](#1--specific-variation-for-a-one-time-situation)
1. [Dynamic variation for a one-time situation](#2--dynamic-variation-for-a-one-time-situation)
1. [Specific variation of a component](#3--specific-variation-of-a-component) re-used in different contexts
1. [Material Design variations](#4--material-design-variations) such as with the button component
1. [Global theme variation](#5--global-theme-variation)

## 1. Specific variation for a one-time situation

Expand Down
1 change: 1 addition & 0 deletions docs/src/pages/demos/text-fields/CustomizedInputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const theme = createMuiTheme({
palette: {
primary: green,
},
typography: { useNextVariants: true },
});

function CustomizedInputs(props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ Material-UI supports the latest, stable releases of all major browsers and platf
We also support Internet Explorer 11.
You don't need to provide any JavaScript polyfill as we manage unsupported browser features internally and in isolation.

| IE | Edge | Firefox | Chrome | Safari |
|:------|:-------|:--------|:-------|:-------|
| 11 | >= 14 | >= 52 | >= 49 | >= 10 |
| IE | Edge | Firefox | Chrome | Safari | Googlebot |
|:------|:-------|:--------|:-------|:-------|:----------|
| 11 | >= 14 | >= 52 | >= 49 | >= 10 | ✅ |

Because Googlebot uses a web rendering service (WRS) to index the page content, it's critical that Material-UI supports it.
[WRS is based on Chrome 41](https://developers.google.com/search/docs/guides/rendering).
You can expect Material-UI's components to render without major issues.

## Server

Expand Down
7 changes: 6 additions & 1 deletion docs/src/pages/versions/LatestVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ function LatestVersion(props) {
<TableCell padding="dense">
<Typography
component={props2 => (
<Link {...props2} variant="secondary" href="https://material-ui.netlify.com/" />
<Link
{...props2}
variant="secondary"
rel="nofollow"
href="https://material-ui.netlify.com/"
/>
)}
>
Documentation
Expand Down
4 changes: 3 additions & 1 deletion docs/src/pages/versions/StableVersions.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ class StableVersions extends React.Component {
</TableCell>
<TableCell padding="dense">
<Typography
component={props2 => <Link {...props2} variant="secondary" href={doc.url} />}
component={props2 => (
<Link {...props2} variant="secondary" rel="nofollow" href={doc.url} />
)}
>
Documentation
</Typography>
Expand Down
File renamed without changes.
File renamed without changes.
Binary file added docs/static/favicon.ico
Binary file not shown.
2 changes: 2 additions & 0 deletions docs/static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Allow: /
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"bugs": {
"url": "https://github.com/mui-org/material-ui/issues"
},
"homepage": "http://material-ui.com/",
"homepage": "https://material-ui.com/",
"scripts": {
"start": "yarn docs:dev",
"docs:dev": "rimraf node_modules/.cache/babel-loader && cross-env BABEL_ENV=docs-development next dev",
Expand All @@ -28,7 +28,7 @@
"docs:icons": "rimraf static/icons/* && babel-node ./docs/scripts/buildIcons.js",
"docs:build": "cross-env NODE_ENV=production BABEL_ENV=docs-production next build",
"docs:start": "next start",
"docs:export": "next export -o docs/export && yarn docs:build-sw && cp docs/_headers docs/export/_headers && cp docs/_redirects docs/export/_redirects",
"docs:export": "next export -o docs/export && yarn docs:build-sw && cp -r docs/static/. docs/export",
"docs:size-why": "DOCS_STATS_ENABLED=true yarn docs:build",
"docs:build-sw": "babel-node ./docs/scripts/buildServiceWorker.js",
"docs:deploy": "git push material-ui-docs master:latest",
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"bugs": {
"url": "https://github.com/mui-org/material-ui/issues"
},
"homepage": "http://material-ui.com/",
"homepage": "https://material-ui.com/",
"scripts": {
"prebuild": "rimraf build",
"build:es2015": "cross-env NODE_ENV=production babel --config-file ../../babel.config.js ./src --out-dir ./build --ignore *.test.js",
Expand Down
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class HomePage extends React.Component {
"@context": "http://schema.org",
"@type": "Organization",
"name": "Material-UI",
"url": "https://material-ui.com",
"url": "https://material-ui.com/",
"logo": "https://material-ui.com/static/brand.png",
"sameAs": [
"https://twitter.com/materialUI",
Expand Down