This is the source for the PlexTech's curriculum website. It is built through Github Pages.
This repository has auto-formatting enabled. The preferred way to format source is through Prettier on your local machine. Install Node on your computer, run npm install -g yarn, and then run yarn. To format code, use the yarn prettier command, which will automatically format all .md and .html files.
There is also a GitHub Action to format code which can be dispatched manually. Go to the Actions tab, find the Auto-Format Source action, and manually trigger a workflow dispatch against the target branch.
A CI check is enabled which runs Prettier and fails if Prettier detects any formatting errors.
You will need Ruby 3 to build the site (it has been tested on Ruby2.7.4).
- On Ubuntu 22.04, Ruby can be installed using
sudo apt install ruby-full. - If using Arch, follow this guide to install it.
- ruby-install is a helpful script- you can run
ruby-install 3.1if Ruby is on the wrong version in your package manager. - You can also use asdf-vm. After installing Ruby (
asdf install ruby 3.1), prependasdf execto all commands that require it (example:asdf exec bundle exec jekyll serve).
You may also need to install Bundler 2.3.26: gem install bundler:2.3.26
- Install Jekyll
$ bundle install- Start your local Jekyll server. You can also use
make local-dev.
$ bundle exec jekyll serve- The console should output a server address (
localhost:8xxx). Open that address in your browser. - Reload your web browser after making a change to preview its effect.
For more information, refer to Just the Docs.
Thanks to the CS 161 Textbook and OCF SysAdmin Decal for providing a general layout for this documentation project.
Owned by PlexTech Consulting of UC Berkeley and Eugene Chao. All Rights Reserved.