page created by: Philip Mocz (2024)
- The
mainbranch contains the website source code - The
gh-pagesbranch stores the built website
A Github Action will automatically rebuild the website when changes are pushed to the repository. The major contents of the website are in src/App.tsx.
The website may also manually be built by checking out the repo, and doing a
yarn install
npm run deployThen, to view the webpage, do
npm run previewand open http://localhost:4173/ in your browser.
If you want to upgrade dependencies (e.g. to patch security issues), try a
yarn upgradeUses https://github.com/thieryw/gitlanding (v2) React components
Starts from demo template: https://github.com/garronej/gitlanding-demo
Follows guide on publishing React web apps to GitHub Pages from https://github.com/gitname/react-gh-pages
-
add a
homepageproperty to thepackage.jsonfile -
also add a
predeployproperty and adeployproperty to thescriptsobject:
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build",