Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

Deploy static to gh-pages

hazam7d9cc2ac563d
diff --git a/docs/index.html b/docs/index.html
new file mode 100644
index 0000000000..e55513cd31
--- /dev/null
+++ b/docs/index.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta http-equiv="X-UA-Compatible" content="ie=edge" />
+ <title>Excalidraw</title>
+ <style>
+ :root {
+ --bg-color: #eee;
+ --text-color: black;
+ }
+
+ html {
+ height: 100%;
+ background: var(--bg-color);
+ color: var(--text-color);
+ font-family: sans-serif;
+ }
+
+ body {
+ margin: 0;
+ height: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .title {
+ font-size: 4em;
+ text-transform: uppercase;
+ }
+
+ @media (prefers-color-scheme: dark) {
+ body {
+ --bg-color: #333;
+ --text-color: white;
+ }
+ }
+ </style>
+ </head>
+ <body>
+ <h1 class="title">
+ excalidraw
+ </h1>
+ </body>
+</html>
diff --git a/package.json b/package.json
index 6652567b2c..ba9ea43d35 100644
--- a/package.json
+++ b/package.json
@@ -14,6 +14,7 @@
"devDependencies": {
"@types/react": "16.9.17",
"@types/react-dom": "16.9.4",
+ "gh-pages": "2.1.1",
"husky": "3.1.0",
"lint-staged": "9.5.0",
"prettier": "1.19.1",
@@ -23,7 +24,8 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
- "eject": "react-scripts eject"
+ "eject": "react-scripts eject",
+ "deploy": "gh-pages -d docs"
},
"browserslist": [
">0.2%",