Class Website for UCSD's COGS 9 Introduction to Data Science
- Install chruby and ruby-install with Homebrew (install ruby 3.1.2)
- cd to project dir and chruby for ruby-3.1.2 #this should be default from the
.ruby-version
file going forward. bundle init
to create gemfile- Set up gems to be installed locally in project dir:
bundle config set --local path 'vendor/bundle'
This creates a.bundle
file - Install Jekyll 4.2:
bundle add jekyll
At this time (9/5/2022) 4.2 auto installs - Create jekyll scaffold:
bundle exec jekyll new --force --skip-bundle .
bundle install
bundle add webrick
- Give it a test run by following the local dev build instructions below!
All dev builds will be built into a dev-docs/
dir. This dir is included in .gitignore
and is only used for development builds. Any specific dev config should bd included in the _config_dev.yml
file. Your absolute path to dev-docs
will be different.
bundle exec jekyll serve --config _config.yml,_config_dev.yml --destination ./dev-docs
#builds and starts local server on localhost- navigate to http://localhost:4000/cogs9/
- A merge or direct push to main branch will automatically trigger the jekyll workflow which will build and deploy the main branch to production.
- Check status in github actions for build results.
- Navigate to https://kshannon-ucsd.github.io/cogs9/
This dir is excluded from the jekyll build chain (excluded in the config.yaml file).
This folder includes data that changes from quarter to quarter, e.g. course calender. I don't want to recreate these data, so I dump them here to use for later. Eventually I would like to create variables to pull this data, but for now this is a fine solution.
The following tags can be applied within a row for each course activity, set within the _data/term/course_calendar.csv
file.
- LECT --> Lecture
- GLCT --> Guest Lecture
- CNCL --> Cancelled class
- ASSG --> Assignment
- EXAM --> Exam
- QUIZ --> Quiz
- EXTR --> Extra Credit
- PROJ --> Project
Any other tag used will default to a black colored tag