Skip to content

Add support for lectures page #41

@Nguyen-HanhNong

Description

@Nguyen-HanhNong

As a user, I want the “Lectures” link in the sidebar to direct users to a centralized page of past COMP course lectures, rather than a hardcoded link to Youtube.


🧠 Context

Currently, clicking on the "Lectures" section in the website’s sidebar navigates users directly to a Youtube Playlist.

Instead, we want a dedicated page that lists archived lecture links for multiple COMP courses. This improves discoverability and makes it easier to add or update lecture links in the future.


🛠️ Implementation Plan

  1. Create a Centralized Lectures Page

    • Add a new page (e.g., pages/lectures.tsx) that renders a list of lecture entries for multiple COMP courses
  2. Store Lecture Metadata in a YAML File

    • Create a YAML file (possiblydata/lectures.yml) near the existing question and content YAML files
    • Each lecture should be an entry in the file with fields like:
      - course: COMP 2804
        title: Winter 2023 Lecture
        link: https://...
  3. Update the Sidebar Link

    • Modify the sidebar so the “Lectures” item links to the new centralized lectures page
  4. Render Lecture List Dynamically

    • Parse the YAML file and dynamically render the lecture links grouped by course

✅ Acceptance Criteria

  • A new page exists that displays past lecture links for multiple COMP courses
  • Lectures are sourced from a YAML file stored alongside existing content
  • The sidebar’s “Lectures” link points to the new centralized page
  • The page renders grouped lecture links in a clear, readable format
  • It’s easy to add new lecture entries by editing the YAML file

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

For Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions