Skip to content

Commit

Permalink
[docs-infra] Add meta charset in codesandbox examples (mui#39424)
Browse files Browse the repository at this point in the history
Co-authored-by: Olivier Tassinari <[email protected]>
  • Loading branch information
Janpot and oliviertassinari authored Oct 27, 2023
1 parent 64c48b5 commit 90363f8
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmark/browser/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title>Perf scenario</title>
<meta charset="utf-8" />
<title>Perf scenario</title>
<meta name="viewport" content="initial-scale=1, width=device-width" />
<style>
body {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ function renderFullPage(html, css) {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My page</title>
${css}
<meta name="viewport" content="initial-scale=1, width=device-width" />
Expand Down
2 changes: 2 additions & 0 deletions docs/src/modules/sandbox/CodeSandbox.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ describe('CodeSandbox', () => {
content: `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>BasicButtons Material Demo</title>
<meta name="viewport" content="initial-scale=1, width=device-width" />
<!-- Fonts to support Material Design -->
Expand Down Expand Up @@ -137,6 +138,7 @@ ReactDOM.createRoot(document.querySelector("#root")).render(
content: `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>BasicButtons Material Demo</title>
<meta name="viewport" content="initial-scale=1, width=device-width" />
<!-- Fonts to support Material Design -->
Expand Down
1 change: 1 addition & 0 deletions docs/src/modules/sandbox/CreateReactApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const getHtml = ({
return `<!DOCTYPE html>
<html lang="${language}">
<head>
<meta charset="utf-8" />
<title>${title}</title>
<meta name="viewport" content="initial-scale=1, width=device-width" />
<!-- Fonts to support Material Design -->
Expand Down
2 changes: 2 additions & 0 deletions docs/src/modules/sandbox/StackBlitz.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ describe('StackBlitz', () => {
'index.html': `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>BasicButtons Material Demo</title>
<meta name="viewport" content="initial-scale=1, width=device-width" />
<!-- Fonts to support Material Design -->
Expand Down Expand Up @@ -110,6 +111,7 @@ ReactDOM.createRoot(document.querySelector("#root")).render(
'index.html': `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>BasicButtons Material Demo</title>
<meta name="viewport" content="initial-scale=1, width=device-width" />
<!-- Fonts to support Material Design -->
Expand Down
1 change: 1 addition & 0 deletions examples/material-ui-express-ssr/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function renderFullPage(html, css) {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>My page</title>
<meta name="viewport" content="initial-scale=1, width=device-width" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
Expand Down
2 changes: 1 addition & 1 deletion examples/material-ui-via-cdn/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>My page</title>
<meta charset="utf-8" />
<title>My page</title>
<meta name="viewport" content="initial-scale=1, width=device-width" />
<script
src="https://unpkg.com/react@latest/umd/react.development.js"
Expand Down

0 comments on commit 90363f8

Please sign in to comment.