nushackers / nushackers-site

NUS Hackers website
https://www.nushackers.org
MIT License
43 stars 45 forks source link

Reorganize data file structure and add new project partials #567

Closed shenyih0ng closed 1 year ago

shenyih0ng commented 1 year ago

Changes

Data Files

Currently, each project (e.g. fh, hs, ht) will maintain a single data .yml but the format + structure across projects differs.


Friday Hacks

This means that for each new semester, we will need to (1) create a new archive data file (2) copy from friday_hacks.yml. This is one step too many.

Hacker(school + tools)

Don't see any huge problems with this, but i guess when considering long term, coreteam in 2100 may need to deal with ~10k lines.


Therefore, I propose that we organize events in a per semester structure so that each event team can just work on a single data file.

New file structure: data/<project-name>/<project-name>_<academic-year>_<semester>.yml

e.g. data/friday_hacks/friday_hacks_2223_2.yml

Additionally, there will be no need to have separate file just for current semester's events. This means that we will need to have a way to track what is the current semester in our configs (relevant commit: c877aa54deea0423c0137bdf4322a8734f182e5b), so that we can compute the right data file to reference for each semester.

Partials

  1. Added new partials for hackerschool and hackertools so that we can replace hardcoded templates in index.html
  2. hackerschool and hackertools share the same partials for now, therefore hackertools' partials is a symlink to hackerschool's
  3. Clean up some of the existing partials
    • e.g. we were using FH partials for HS so it was pretty confusing
netlify[bot] commented 1 year ago

Deploy Preview for nushackers ready!

Name Link
Latest commit 0f875640a6ca0f9f605a1e77d19d56d025ae8241
Latest deploy log https://app.netlify.com/sites/nushackers/deploys/6471a657db61020008960cc8
Deploy Preview https://deploy-preview-567--nushackers.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.