From 4ab7aab52e1cdcabf14572108a5781fe572bcd27 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Wed, 17 Oct 2018 00:24:59 +0200 Subject: [PATCH 1/2] [core] Misc of improvements --- .../customization/css-in-js/JssRegistry.js | 2 +- .../pages/customization/overrides/overrides.md | 10 +++++----- .../pages/demos/text-fields/CustomizedInputs.js | 1 + .../supported-platforms/supported-platforms.md | 10 +++++++--- docs/{ => static}/_headers | 0 docs/{ => static}/_redirects | 0 docs/static/favicon.ico | Bin 0 -> 15086 bytes docs/static/robots.txt | 2 ++ package.json | 4 ++-- packages/material-ui/package.json | 2 +- pages/index.js | 2 +- 11 files changed, 20 insertions(+), 13 deletions(-) rename docs/{ => static}/_headers (100%) rename docs/{ => static}/_redirects (100%) create mode 100755 docs/static/favicon.ico create mode 100644 docs/static/robots.txt diff --git a/docs/src/pages/customization/css-in-js/JssRegistry.js b/docs/src/pages/customization/css-in-js/JssRegistry.js index c63dd56c7e51ee..6c847d5d5b3b19 100644 --- a/docs/src/pages/customization/css-in-js/JssRegistry.js +++ b/docs/src/pages/customization/css-in-js/JssRegistry.js @@ -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 = { diff --git a/docs/src/pages/customization/overrides/overrides.md b/docs/src/pages/customization/overrides/overrides.md index a4ba37ecacf706..18fde2ff2a2e37 100644 --- a/docs/src/pages/customization/overrides/overrides.md +++ b/docs/src/pages/customization/overrides/overrides.md @@ -2,11 +2,11 @@

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.

-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 diff --git a/docs/src/pages/demos/text-fields/CustomizedInputs.js b/docs/src/pages/demos/text-fields/CustomizedInputs.js index b9cd4e4e0066a7..17a90220fd18b3 100644 --- a/docs/src/pages/demos/text-fields/CustomizedInputs.js +++ b/docs/src/pages/demos/text-fields/CustomizedInputs.js @@ -67,6 +67,7 @@ const theme = createMuiTheme({ palette: { primary: green, }, + typography: { useNextVariants: true }, }); function CustomizedInputs(props) { diff --git a/docs/src/pages/getting-started/supported-platforms/supported-platforms.md b/docs/src/pages/getting-started/supported-platforms/supported-platforms.md index d762b976785b38..975a055ed5119c 100644 --- a/docs/src/pages/getting-started/supported-platforms/supported-platforms.md +++ b/docs/src/pages/getting-started/supported-platforms/supported-platforms.md @@ -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 diff --git a/docs/_headers b/docs/static/_headers similarity index 100% rename from docs/_headers rename to docs/static/_headers diff --git a/docs/_redirects b/docs/static/_redirects similarity index 100% rename from docs/_redirects rename to docs/static/_redirects diff --git a/docs/static/favicon.ico b/docs/static/favicon.ico new file mode 100755 index 0000000000000000000000000000000000000000..c87a0e91d3907481e5ee370d343e84af967c80e0 GIT binary patch literal 15086 zcmeI3eT*Gd6~OPZm91@c3xV<>@G3=u;73KH6p=+^2parD6v9U|O^i}g6E#r?s4YZA z5J@C{M6ueS605{u{E9)5CN)+CV=&Bj>7fzO1_q^z9}er0{NVZk(eK zZOg3tP!x92ODKD0m+~mGPM-r#GVannjHfjF76x)ArMat8+IS3n7B;5zak#G0w)glG zdkVj3Ih+HoPc4Z%wS6`Gb2tKn9D#)-do8>gT$}z|atIB*7+hce3e#{4JP*p&6{-dz zCy>SUXD9H~{Rca^z8ZL12QI7#i4`H;2XkQCPr?@XDa?Xp{{+|S%U}@eob!4vd=F;8 zHf-N_;aWHhmce`BL5MN=JGSqtvta@BBgYfOs@Iy|$h(Vc-=8N!r#SB}fuDrOApHM` zeKWXs=~XTv!10V+li24$)jj5KJqLVG`mQt9xw#m6l~n}%2BLlQeHWY$=cP&(Q|Wzb ztn+m#^dl<>x(ObE=!ehS=b-L+vrXHsYTx@>s$`VPGvRi40-_&v&s$ylr;+RXIofry z2#1ScD|9|@K7Xe}QR>>St1sq@>tz`4fhJVVZ(aVn`e?6Auc4x9e(Unr)t9v!<#q9= z;&^9{c2Vl$ea2pu)9rbyi$9#$>vOb=QWo#};8-U)%TH@*VJge;SmDb^3f8jM*6eEyzl`WKxWZ7I=pY1-Ykxi}}%XVZR$tJU{+4RIzHrtq*%En+TO#PcJ z*w;=??M#cp)j==x#2)M^{C2SmoL*O3S zZ$R#ee+8GrQaI3M5gqg_@ne{U*jGP^?YDu~fPeRJpo!l^R>9ZcZxH=1>OWKWd3Ygo zo+r56Z?b}xZ-j@T*x$12-{ZRuo(20$Jj1UAzkPbl4=%}}-hdL1*@tCzth=={zS`EBb27?jxmCPe>UEqf}&IrrZXfyN^lzkmu4*ur(h<$BB zb*Yv9O(7rZ1;!7ZHfEi&Uf{}*8g6|r`P+r*Zldg&Rg}G-{Jby}^^poE+ zfPb$f+EvnPe$U=-gZpx{tIp%S=0A*lo;^KJh_+>AGT;1%lHfeJ6Wpt1Iog(4r%zGl zn?K?P?eAXl1+W38A^Kg^*6E{f=l-+T{v1pEFCp@4TUI7j`Hg!&?10Eur}Z@^+N{ct z+g{??F7}3-a@(>pDdyjf<7sdy+zXw1@#wo}#@lkr&X2~L!(8T!*e14Z*2zK~q)yCb z&MfC~v}>1p$0!T!9`kN^9k_=PZOh8`pXM@W$#SusHHbg zwDt6OThETFXR^5w^|T4vdNSA3d+CiWKU~!t+x2r}ZM}P>t*5P`esfyc^5Zz!(xbC& cJvP_Y4car$dj6Fbnjam%o1bj|mHzd=0IGp3^8f$< literal 0 HcmV?d00001 diff --git a/docs/static/robots.txt b/docs/static/robots.txt new file mode 100644 index 00000000000000..c2a49f4fb82f19 --- /dev/null +++ b/docs/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Allow: / diff --git a/package.json b/package.json index b8d3c293ccc410..fe0936dc4c2b0d 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", diff --git a/packages/material-ui/package.json b/packages/material-ui/package.json index 52f6fbcb1a1e9a..87216d86b67b9e 100644 --- a/packages/material-ui/package.json +++ b/packages/material-ui/package.json @@ -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", diff --git a/pages/index.js b/pages/index.js index d7bd03019e37f0..78f5bab993286e 100644 --- a/pages/index.js +++ b/pages/index.js @@ -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", From 523c8cfd82024763846917a161775bc6d70d8095 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Wed, 17 Oct 2018 10:08:14 +0200 Subject: [PATCH 2/2] even better --- docs/src/pages/versions/LatestVersion.js | 7 ++++++- docs/src/pages/versions/StableVersions.js | 4 +++- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/src/pages/versions/LatestVersion.js b/docs/src/pages/versions/LatestVersion.js index 05108d3b71a2c5..48f725c4e82414 100644 --- a/docs/src/pages/versions/LatestVersion.js +++ b/docs/src/pages/versions/LatestVersion.js @@ -30,7 +30,12 @@ function LatestVersion(props) { ( - + )} > Documentation diff --git a/docs/src/pages/versions/StableVersions.js b/docs/src/pages/versions/StableVersions.js index b606d37f2131e6..a989071877249f 100644 --- a/docs/src/pages/versions/StableVersions.js +++ b/docs/src/pages/versions/StableVersions.js @@ -90,7 +90,9 @@ class StableVersions extends React.Component { } + component={props2 => ( + + )} > Documentation diff --git a/package.json b/package.json index fe0936dc4c2b0d..a4201986fd374a 100644 --- a/package.json +++ b/package.json @@ -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 -r docs/static docs/export", + "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",