Skip to content

Commit

Permalink
Make lab a collection; add hw and projects collections; create HW 1 a…
Browse files Browse the repository at this point in the history
…nd Proj 1
  • Loading branch information
phrdang committed Jun 14, 2024
1 parent f467385 commit ad02642
Show file tree
Hide file tree
Showing 11 changed files with 95 additions and 6 deletions.
27 changes: 27 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,38 @@ collections:
modules:
schedules:
announcements:
labs:
output: true
permalink: /:collection/:path
hw:
output: true
permalink: /:collection/:path
projects:
output: true
permalink: /:collection/:path

# Default layouts for each collection type
defaults:
- scope:
path: ''
type: labs
values:
layout: lab
nav_exclude: true
- scope:
path: ''
type: hw
values:
layout: hw
nav_exclude: true
- scope:
path: ''
type: projects
values:
layout: project
nav_exclude: true
- scope:
path: '_staffers'
type: staffers
values:
layout: staffer
Expand Down
19 changes: 19 additions & 0 deletions _hw/hw01.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: HW 1
description: Recursion
due: "2024-06-13 11:59:59 PM PST"
gradescope_assignment_id: 3858564
submission_files:
- hw01.py
---

1. TOC
{:toc}

## Q1: Sample Question

{% include questions/sample_question.md %}

## Q2: Another Question

{% include questions/another_question.md %}
Empty file removed _hw/temp
Empty file.
2 changes: 0 additions & 2 deletions labs/lab01.md → _labs/lab01.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
---
layout: lab
title: Lab 1
description: Control and Functions
due: "2024-06-13 11:59:59 PM PST"
gradescope_assignment_id: 3858564
submission_files:
- lab01.py
- another_file.py
nav_exclude: true
---

1. TOC
Expand Down
14 changes: 14 additions & 0 deletions _layouts/hw.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
layout: default
---

<div class="hw">
<h1>{{ page.title }}: {{ page.description }}</h1>
<div class="due">Due at: {{ page.due }}</div>
<!-- TODO zip file button starter code (zero fill) -->

{{ content }}

<h2>Submission</h2>
{% include submission.html gradescope_assignment_id=page.gradescope_assignment_id submission_files=page.submission_files %}
</div>
2 changes: 0 additions & 2 deletions _layouts/lab.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
<h1>{{ page.title }}: {{ page.description }}</h1>
<div class="due">Due at: {{ page.due }}</div>
<!-- TODO zip file button starter code (zero fill) -->
<!-- TODO table of contents -->

{{ content }}

<h2>Submission</h2>
{% include submission.html gradescope_assignment_id=page.gradescope_assignment_id submission_files=page.submission_files %}
</div>

14 changes: 14 additions & 0 deletions _layouts/project.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
layout: default
---

<div class="project">
<h1>{{ page.title }}: {{ page.description }}</h1>
<div class="due">Due at: {{ page.due }}</div>
<!-- TODO zip file button starter code (zero fill) -->

{{ content }}

<h2>Submission</h2>
{% include submission.html gradescope_assignment_id=page.gradescope_assignment_id submission_files=page.submission_files %}
</div>
2 changes: 1 addition & 1 deletion _modules/week-01.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ Oct 1
Oct 2
: [Tracing, IntLists, & Recursion](#)
: [2.1](#)
: **HW 1 due**{: .label .label-red }
: **HW 1 due**{: .label .label-red } [HW 1: Recursion]({{ site.baseurl }}/hw/hw01)
2 changes: 1 addition & 1 deletion _modules/week-02.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Oct 7
: [2.4](#), [2.5](#)

Oct 8
: **Lab**{: .label .label-purple } [Resizing Arrays](#)
: **Project**{: .label .label-green } [Project 1: Ants vs. Some Bees]({{ site.baseurl }}/projects/proj01)

Oct 9
: [Runtime Analysis](#)
Expand Down
19 changes: 19 additions & 0 deletions _projects/proj01.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Project 1
description: Ants vs. Some Bees
due: "2024-06-13 11:59:59 PM PST"
gradescope_assignment_id: 3858564
submission_files:
- ants.py
---

1. TOC
{:toc}

## Q1: Sample Question

{% include questions/sample_question.md %}

## Q2: Another Question

{% include questions/another_question.md %}
Empty file removed _projects/temp
Empty file.

0 comments on commit ad02642

Please sign in to comment.