Skip to content

Commit

Permalink
docs: put Github Pages things back where they belong
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamwasp authored Dec 16, 2024
1 parent 630e911 commit bb18de2
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 13 deletions.
1 change: 1 addition & 0 deletions dist/static/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gamut.codecademy.com
2 changes: 2 additions & 0 deletions dist/static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow:
23 changes: 23 additions & 0 deletions dist/static/storybook/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!doctype html>
<html class="no-js" lang="">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="robots" content="noindex" />
<title>Styleguide | Codecademy</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>

<body>
<script>
// Preserve existing links to /storybook with a janky redirect
const url = new URL(window.location.href, window.location);
url.pathname = url.pathname.replace(/^\/storybook/, '');
window.location.assign(url.toString());
</script>

</body>

</html>
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
"micromatch": "^4.0.5",
"mutationobserver-shim": "^0.3.3",
"nx": "19.3.2",
"nx-cloud": "^19.1.0",
"onchange": "^7.0.2",
"prettier": "^2.6.2",
"react-test-renderer": "18.3.1",
Expand Down Expand Up @@ -115,11 +116,11 @@
"scripts": {
"build": "nx run-many --target=build --all",
"build-all": "yarn build",
"build-storybook": "nx run styleguide:build-storybook && lerna run copy-storybook",
"build-storybook": "nx run styleguide:build-storybook",
"build:graph": "nx graph",
"clean-builds": "nx run-many --target=clean --all",
"clear-modules": "yarn clean-builds && lerna clean -y && rm -rf node_modules",
"deploy": "cp -r ./dist/static/* ./dist/storybook/styleguide && gh-pages -b gh-pages -d dist",
"deploy": "rm -rf ./dist/docs && mv ./dist/storybook/styleguide ./dist/docs && cp -r ./dist/static/* ./dist/docs && gh-pages -b gh-pages -d dist",
"format": "yarn lint:fix && yarn prettier --write",
"format:verify": "yarn prettier --check",
"lint": "eslint --ignore-path .eslintignore \"./**/*.{mdx,js,ts,tsx,json}\" --max-warnings 0",
Expand Down
8 changes: 1 addition & 7 deletions packages/styleguide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,5 @@
"publishConfig": {
"access": "public"
},
"repository": "[email protected]:Codecademy/gamut.git",
"scripts": {
"build-storybook": "NODE_ENV=production build-storybook --quiet -c .storybook -o ./dist",
"copy-storybook": "rm -rf ../../dist/docs && cp -r ./dist ../../dist/docs",
"start": "yarn storybook",
"storybook": "start-storybook -p 6006 -c .storybook --ci --quiet"
}
"repository": "[email protected]:Codecademy/gamut.git"
}
41 changes: 37 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2151,6 +2151,13 @@
dependencies:
"@nx/js" "19.3.2"

"@nrwl/[email protected]":
version "19.1.0"
resolved "https://registry.npmjs.org/@nrwl/nx-cloud/-/nx-cloud-19.1.0.tgz#5338910b7cbc0d974f374e8d5ca4ef31ccdc16df"
integrity sha512-krngXVPfX0Zf6+zJDtcI59/Pt3JfcMPMZ9C/+/x6rvz4WGgyv1s0MI4crEUM0Lx5ZpS4QI0WNDCFVQSfGEBXUg==
dependencies:
nx-cloud "19.1.0"

"@nrwl/[email protected]":
version "19.3.2"
resolved "https://registry.npmjs.org/@nrwl/react/-/react-19.3.2.tgz#cea60fd83c068693762c42c4622bdd281835100c"
Expand Down Expand Up @@ -6615,6 +6622,11 @@ dotenv@^16.4.4, dotenv@~16.4.5:
resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz#cdd3b3b604cb327e286b4762e13502f717cb099f"
integrity sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==

dotenv@~10.0.0:
version "10.0.0"
resolved "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81"
integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==

dotenv@~16.3.1:
version "16.3.2"
resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.3.2.tgz#3cb611ce5a63002dbabf7c281bc331f69d28f03f"
Expand Down Expand Up @@ -8659,6 +8671,11 @@ [email protected]:
resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
integrity sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==

[email protected]:
version "4.1.3"
resolved "https://registry.npmjs.org/ini/-/ini-4.1.3.tgz#4c359675a6071a46985eb39b14e4a2c0ec98a795"
integrity sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg==

ini@^1.3.2, ini@^1.3.8:
version "1.3.8"
resolved "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c"
Expand Down Expand Up @@ -10833,7 +10850,7 @@ node-int64@^0.4.0:
resolved "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b"
integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==

[email protected]:
[email protected], node-machine-id@^1.1.12:
version "1.1.12"
resolved "https://registry.npmjs.org/node-machine-id/-/node-machine-id-1.1.12.tgz#37904eee1e59b320bb9c5d6c0a59f3b469cb6267"
integrity sha512-QNABxbrPa3qEIfrE6GOJ7BYIuignnJw7iQ2YPbc3Nla1HzRJjXzZOiikfF8m7eAMfichLt3M4VgLOetqgDmgGQ==
Expand Down Expand Up @@ -11043,6 +11060,22 @@ nwsapi@^2.2.2:
resolved "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.13.tgz#e56b4e98960e7a040e5474536587e599c4ff4655"
integrity sha512-cTGB9ptp9dY9A5VbMSe7fQBcl/tt22Vcqdq8+eN93rblOuE0aCFu4aZ2vMwct/2t+lFnosm8RkQW1I0Omb1UtQ==

[email protected], nx-cloud@^19.1.0:
version "19.1.0"
resolved "https://registry.npmjs.org/nx-cloud/-/nx-cloud-19.1.0.tgz#3edb6eaad70f7ab09b2008fdd02fa5ac0f9df940"
integrity sha512-f24vd5/57/MFSXNMfkerdDiK0EvScGOKO71iOWgJNgI1xVweDRmOA/EfjnPMRd5m+pnoPs/4A7DzuwSW0jZVyw==
dependencies:
"@nrwl/nx-cloud" "19.1.0"
axios "^1.6.0"
chalk "^4.1.0"
dotenv "~10.0.0"
fs-extra "^11.1.0"
ini "4.1.3"
node-machine-id "^1.1.12"
open "~8.4.0"
tar "6.2.1"
yargs-parser ">=21.1.1"

[email protected], "nx@>=16.5.1 < 17":
version "16.10.0"
resolved "https://registry.npmjs.org/nx/-/nx-16.10.0.tgz#b070461f7de0a3d7988bd78558ea84cda3543ace"
Expand Down Expand Up @@ -11286,7 +11319,7 @@ onetime@^6.0.0:
dependencies:
mimic-fn "^4.0.0"

open@^8.0.4, open@^8.0.9, open@^8.4.0:
open@^8.0.4, open@^8.0.9, open@^8.4.0, open@~8.4.0:
version "8.4.2"
resolved "https://registry.npmjs.org/open/-/open-8.4.2.tgz#5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9"
integrity sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==
Expand Down Expand Up @@ -13956,7 +13989,7 @@ [email protected]:
mkdirp "^1.0.3"
yallist "^4.0.0"

tar@^6.1.11, tar@^6.1.2:
tar@6.2.1, tar@^6.1.11, tar@^6.1.2:
version "6.2.1"
resolved "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz#717549c541bc3c2af15751bea94b1dd068d4b03a"
integrity sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==
Expand Down Expand Up @@ -15241,7 +15274,7 @@ [email protected]:
resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54"
integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==

[email protected], yargs-parser@^21.0.1, yargs-parser@^21.1.1:
[email protected], yargs-parser@>=21.1.1, yargs-parser@^21.0.1, yargs-parser@^21.1.1:
version "21.1.1"
resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35"
integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==
Expand Down

0 comments on commit bb18de2

Please sign in to comment.