Skip to content

PlexTechIP/plextech-curriculum-site

Repository files navigation

PlexTech Curriculum Website

This is the source for the PlexTech's curriculum website. It is built through Github Pages.

Source Code Formatting

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.

How to contribute

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.1 if Ruby is on the wrong version in your package manager.
  • You can also use asdf-vm. After installing Ruby ( asdf install ruby 3.1 ), prepend asdf exec to 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

  1. Install Jekyll
$ bundle install
  1. Start your local Jekyll server. You can also use make local-dev.
$ bundle exec jekyll serve
  1. The console should output a server address (localhost:8xxx). Open that address in your browser.
  2. Reload your web browser after making a change to preview its effect.

For more information, refer to Just the Docs.

Credit

Thanks to the CS 161 Textbook and OCF SysAdmin Decal for providing a general layout for this documentation project.

Rights

Owned by PlexTech Consulting of UC Berkeley and Eugene Chao. All Rights Reserved.

Contributors 2

  •  
  •