Skip to content

Commit

Permalink
converted to string
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnLu2004 committed Aug 2, 2024
1 parent 0ae6a3c commit ae81c6b
Show file tree
Hide file tree
Showing 46 changed files with 49 additions and 42 deletions.
2 changes: 1 addition & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ const tagCollection = defineCollection({
course: z.string(),
tag: z.string(),
title: z.string(),
section: z.nullable(z.string()),
}),
});

export const collections = {
questions: questionCollection,
evaluations: evaluationCollection,
tags: tagCollection,
section: z.nullable(z.string()),
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: A Basic Property of Independent Events
tag: comp2804-a-basic-property-of-independent-events
section: 5.11.2
section: "5.11.2"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: A Recursively Defined Set
tag: comp2804-a-recursively-defined-set
section: 4.3
section: "4.3"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Basic Rules of Probability
tag: comp2804-basic-rules-of-probability
section: 5.3
section: "5.3"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-combinatorial-proof.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Combinatorial Proof
tag: comp2804-combinatorial-proof
section: 3.7
section: "3.7"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Conditional Probability
tag: comp2804-conditional-probability
section: 5.8
section: "5.8"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Counting 00-Free Bitstrings
tag: comp2804-counting-00-free-bitstrings
section: 4.2.1
section: "4.2.1"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Counting Bitstrings of Length n
tag: comp2804-counting-bitstrings-of-length-n
section: 3.1.1
section: "3.1.1"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-counting-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Counting Functions
tag: comp2804-counting-functions
section: 3.1.2
section: "3.1.2"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Counting Solutions of Linear Equations
tag: comp2804-counting-solutions-of-linear-equations
section: 3.9.2
section: "3.9.2"
---
1 change: 1 addition & 0 deletions src/content/tags/comp2804/comp2804-de-morgan's-law.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
course: comp2804
title: De Morgan's Law
tag: comp2804-de-morgan's-law
section:
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Determining the Expected Value
tag: comp2804-determining-the-expected-value
section: 6.6.1
section: "6.6.1"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Determining the Expected Value
tag: comp2804-determining-the-expected-value
section: 6.7.1
section: "6.7.1"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-discrete-probability.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Discrete Probability
tag: comp2804-discrete-probability
section: 5
section: "5"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-euclid's-algorithm.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Euclid's Algorithm
tag: comp2804-euclid's-algorithm
section: 4.5
section: "4.5"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-expected-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Expected Values
tag: comp2804-expected-values
section: 6.4
section: "6.4"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-fibonacci-numbers.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Fibonacci Numbers
tag: comp2804-fibonacci-numbers
section: 4.2
section: "4.2"
---
1 change: 1 addition & 0 deletions src/content/tags/comp2804/comp2804-final.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
course: comp2804
title: COMP 2804 Final Exam
tag: comp2804-final
section:
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-independent-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Independent Events
tag: comp2804-independent-events
section: 5.11
section: "5.11"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Independent Random Variables
tag: comp2804-independent-random-variables
section: 6.2
section: "6.2"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Indicator Random Variables
tag: comp2804-indicator-random-variables
section: 6.8
section: "6.8"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Linearity of Expectations
tag: comp2804-linearity-of-expectations
section: 6.5
section: "6.5"
---
1 change: 1 addition & 0 deletions src/content/tags/comp2804/comp2804-midterm.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
course: comp2804
title: COMP 2804 Midterm
tag: comp2804-midterm
section:
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Newton's Binomial Theorem
tag: comp2804-newton's-binomial-theorem
section: 3.6.2
section: "3.6.2"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Permutations and Binomial Coefficients
tag: comp2804-permutations-and-binomial-coefficients
section: 3.6
section: "3.6"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Permutations and Binomial Coefficients
tag: comp2804-permutations-and-binomial-coefficients
section: 3.6.1
section: "3.6.1"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Permutations and Binomial Coefficients
tag: comp2804-permutations-and-binomial-coefficients
section: 3.6.2
section: "3.6.2"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Placing Books on Shelves
tag: comp2804-placing-books-on-shelves
section: 3.1.3
section: "3.1.3"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-question.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Question
tag: comp2804-question
section: 5.73
section: "5.73"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Random Variables and Expectation
tag: comp2804-random-variables-and-expectation
section: 6
section: "6"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-random-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Random Variables
tag: comp2804-random-variables
section: 6.1
section: "6.1"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-recursive-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Recursive Functions
tag: comp2804-recursive-functions
section: 4.1
section: "4.1"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Reordering the Letters of a Word
tag: comp2804-reordering-the-letters-of-a-word
section: 3.9.1
section: "3.9.1"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-rolling-two-dice.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Rolling Two Dice
tag: comp2804-rolling-two-dice
section: 5.11.1
section: "5.11.1"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-the-bijection-rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: The Bijection Rule
tag: comp2804-the-bijection-rule
section: 3.2.1
section: "3.2.1"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-the-birthday-paradox.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: The Birthday Paradox
tag: comp2804-the-birthday-paradox
section: 5.5
section: "5.5"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-the-complement-rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: The Complement Rule
tag: comp2804-the-complement-rule
section: 3.3
section: "3.3"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: The Law of Total Probability
tag: comp2804-the-law-of-total-probability
section: 5.9
section: "5.9"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: The Pigeonhole Principle
tag: comp2804-the-pigeonhole-principle
section: 3.10
section: "3.10"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: The Principle of Inclusion and Exclusion
tag: comp2804-the-principle-of-inclusion-and-exclusion
section: 3.5
section: "3.5"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: The Probability of Getting a Full House
tag: comp2804-the-probability-of-getting-a-full-house
section: 5.4.1
section: "5.4.1"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-the-product-rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: The Product Rule
tag: comp2804-the-product-rule
section: 3.1
section: "3.1"
---
2 changes: 1 addition & 1 deletion src/content/tags/comp2804/comp2804-the-sum-rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: The Sum Rule
tag: comp2804-the-sum-rule
section: 3.4
section: "3.4"
---
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
course: comp2804
title: Uniform Probability Spaces
tag: comp2804-uniform-probability-spaces
section: 4.4
section: "4.4"
---
1 change: 1 addition & 0 deletions src/content/tags/comp2804/comp2804.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
course: comp2804
title: "COMP 2804: Discrete Structures II"
tag: comp2804
section:
---
5 changes: 4 additions & 1 deletion src/pages/courses.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ const comp2804Tags = tags.filter((tag) => tag.data.course === "comp2804");
comp2804Tags.map((tag) => (
<div>
<a href={`/practice/tag/${tag.data.tag}`}>
<RowCard title={`${tag.data.title} Questions`} icon="mdi mdi-tag" />
<RowCard
title={`${tag.data.title} ${tag.data.section ? "(" + tag.data.section + ")" : ""} Questions`}
icon="mdi mdi-tag"
/>
</a>
</div>
))
Expand Down

0 comments on commit ae81c6b

Please sign in to comment.