Thanks for your interest in helping us maintain our course notes! We are happy to consider contributions from faculty and students to help make these notes easier to use and improve their correctness.
These notes are built using Docusaurus, a modern static website generator. To use it, you'll need to have the following installed:
-
an LTS version of node.js, which can be checked by running
node -v
. Currently that's node.js 14.x, but confirm with the official site. -
The yarn package manager, version >= 1.5 (which can be checked by running
yarn --version
). -
Visual Studio Code. This is not strictly necessary, but we encourage it since we use various extensions to make working on the site easier.
To install the dependencies, use:
yarn install
To develop the site, use:
yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
If you want to make a change, please use the following GitHub workflow:
- fork this repo on GitHub
- clone your forked repo to your local machine,
git clone https://github.com/{your username}/IPC144
- create a new branch off of the
main
branch,git checkout -b {new branch name} main
- make your changes and save
- check to see which files have changed,
git status
- stage these changed files in git,
git add file1 file2 ...
- commit your changes,
git commit -m "Made the following changes..."
- push your commits and branch to your fork,
git push origin {new branch name}
- create a Pull Request on GitHub
- add a description about what you changed and anything the maintainers need to know
To create a production build, use:
yarn build
This command generates static content in the build/
directory and can be served using any static contents hosting service, for example: GitHub Pages.
To build and deploy to GitHub Pages, use:
GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages
branch.