shanep-class 1.0.15 โ†’ 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6124905ce56640ef45e906e79327c69a436af24280c005a2de459856625d73a6
4
- data.tar.gz: 0aeddc06f632ea2b71bb3f1d671c2f5fc2b8f263bbfa35d06d12b0746379c712
3
+ metadata.gz: 033f34abc2faa1d1d69b1dbdfd27db42c01de7d707b2bd3b8015fd72de5b861c
4
+ data.tar.gz: 0edf668c5a73cbeb881bf9206aae2df4a83e018927d2f0bda65b2d6a015e6ab1
5
5
  SHA512:
6
- metadata.gz: 53701e291239a4e7b89cf2a64e6668446a6ab9ab89cb507471dbd7147ed377c0984d36a0c607795e8cf5dafb49a086a751dff4f052811c703353d52000a11735
7
- data.tar.gz: 2753b58f7eb5bf503f70d875258ce81d6904f91ae5ce4b1a01e3dc28fa363770b359f31ebac60626ab5927189810d4fe815815041533fe00c968cc0df97259a8
6
+ metadata.gz: 6c2d3ac779786a4bfd29e29040a0a29b810e97bdc2895fa1750e6b0120be84b8da3fdf049f5b865db77c62247950b339f5f9e388f02a0c159490471165bb4e85
7
+ data.tar.gz: fc99aebecee132694856f654f213a22748cc4a21e29bf5107ae3e2389340a54a130d725e4c0323372bbcf38b87bbfb202a37ee3cdeec195c567b24c4ab8bf7e2
@@ -16,18 +16,6 @@
16
16
  {% endif %}
17
17
  <a href={{site.url}}/docs/syllabus.html>Syllabus</a>
18
18
  </li>
19
- </ul>
20
19
 
21
- <h2>Lessons</h2>
22
- <ul>
23
- {% for pg in site.lessons %}
24
- {% if pg.path == page.path %}
25
- <li class='active'>
26
- {% else %}
27
- <li>
28
- {% endif %}
29
- <a href={{pg.url}}> {{ pg.title }}</a>{%if pg.layout == "lab"%} ๐Ÿงช {%elsif pg.layout == "project" %} ๐Ÿ“ก {% endif%}</li>
30
-
31
- {% endfor %}
32
- </ul>
20
+ </ul>
33
21
  </div>
@@ -1,5 +1,5 @@
1
1
  <div class="logo">
2
2
  <h1>
3
- <a href="{{site.url}}">{{site.data.semester-info.text_logo}}</a>
3
+ <a href="{{site.url}}">{{site.data.semester-info.text-logo}}</a>
4
4
  </h1>
5
5
  </div>
data/_layouts/home.html CHANGED
@@ -1,9 +1,126 @@
1
1
  ---
2
2
  layout: course-notoc
3
3
  ---
4
+ {% assign tableFile = site.data.semester-info %}
4
5
 
5
- <h1>{{site.title}} - {{site.description}}</h1>
6
+ <h1>{{site.title}} - {{site.description}} [{{tableFile.semester}}]</h1>
6
7
 
7
8
  <img src={{"/assets/images/home_page.png"}} alt="Course Logo">
8
9
 
9
- {% include semester-info.html file="semester-info" %}
10
+ <h2>Welcome!</h2>
11
+
12
+ {% include youtube.html param= tableFile.welcome-video %}
13
+
14
+ <p>
15
+ {{tableFile.welcome-message}}
16
+ </p>
17
+
18
+ <h2 id="logistics">Logistics</h2>
19
+
20
+ <ul>
21
+ <li><strong>Instructor:</strong> {{tableFile.instructor}}</li>
22
+ <li><strong>Email:</strong> {{tableFile.email}}</li>
23
+ {% if tableFile.textbook %}
24
+ <li><a href="{{tableFile.textbook}}">Textbook</a></li>
25
+ {% endif %}
26
+ <li><a href="{{tableFile.discussion}}">Discussion Forum</a></li>
27
+ <li><a href="{{tableFile.github}}">Github Course Site</a></li>
28
+ <li><a href="{{tableFile.grades}}">Grades</a></li>
29
+ <li><a href="{{tableFile.office-hours}}">Office Hours</a></li>
30
+ <li><a href="{{tableFile.learning-objectives}}">Learning Objective Alignment Sheet</a></li>
31
+ </ul>
32
+
33
+ {% assign one_day = 1 | times: 24 | times: 60 | times: 60 %}
34
+ {% assign two_days = 2 | times: 24 | times: 60 | times: 60 %}
35
+ {% assign three_days = 3 | times: 24 | times: 60 | times: 60 %}
36
+ {% assign four_days = 4 | times: 24 | times: 60 | times: 60 %}
37
+
38
+
39
+ {% if tableFile.start-day == "monday" %}
40
+ {% assign curr_date = tableFile.start-date | date: "%s" | minus: four_days%}
41
+ {% elsif tableFile.start-day == "tuesday" %}
42
+ {% assign curr_date = tableFile.start-date | date: "%s" | minus: three_days%}
43
+ {% elsif tableFile.start-day == "wednesday" %}
44
+ {% assign curr_date = tableFile.start-date | date: "%s" | minus: two_days%}
45
+ {% elsif tableFile.start-day == "thursday" %}
46
+ {% assign curr_date = tableFile.start-date | date: "%s" | minus: one_day %}
47
+ {% endif%}
48
+
49
+ <div >
50
+ <h2 id="Homework">Weekly Homework</h2>
51
+ <table style="margin:auto;height: 100%; width: 100%;">
52
+ <thead>
53
+ <tr>
54
+ <th class="text-center">Week</th>
55
+ <th>Due Date</th>
56
+ <th>Homework</th>
57
+ </tr>
58
+ </thead>
59
+
60
+ <tbody>
61
+ {% assign curr_week = 1 %}
62
+ {% assign curr_module = "none" %}
63
+
64
+ {% assign loop_counter = 1 %}
65
+ {% assign pgs = site.lessons | sort: 'slug' %}
66
+
67
+ {% for page in pgs %}
68
+ {% if page.path contains "lesson" %}
69
+ {% assign loop_counter = loop_counter | plus: 1 %}
70
+ {% if curr_module != page.tag %}
71
+ <!--Module header-->
72
+ <tr>
73
+ <td colspan="3" class="text-center table-darkish">{{page.tag | capitalize }}</td>
74
+ </tr>
75
+ {% assign curr_module = page.tag %}
76
+ {% endif%}
77
+
78
+
79
+ {% if curr_week == tableFile.break %}
80
+ <!--Add in the break week, we need to grab the next lesson before inserting new week-->
81
+ <tr>
82
+ {% assign curr_date = curr_date | date: "%s" | plus: two_days %}
83
+ <td>{{curr_date | date: "%m/%d - %a"}}</td>
84
+ <td><a href="{{site.url}}{{page.url}}">{{page.title}} ({{page.slug}})</a>{%if page.layout == "lab"%} ๐Ÿงช {%elsif page.layout == "project" %} ๐Ÿ“ก {% endif%}</td>
85
+ </tr>
86
+ <tr>
87
+ <td rowspan= 2 class="table-lightish text-center border">
88
+ {% assign curr_date = curr_date | date: "%s" | plus: three_days %}
89
+ {{curr_week}}
90
+ </td>
91
+ {% assign curr_date = curr_date | date: "%s" | plus: two_days %}
92
+ <td>{{curr_date | date: "%m/%d - %a"}}</td>
93
+ <td>Break</td>
94
+ </tr>
95
+ <tr>
96
+ {% assign curr_date = curr_date | date: "%s" | plus: two_days %}
97
+ <td>{{curr_date | date: "%m/%d - %a"}}</td>
98
+ <td>Break</td>
99
+ </tr>
100
+ {% assign curr_week = curr_week | plus: 1 %}
101
+ {%else%}
102
+
103
+ <tr>
104
+ {% comment %}
105
+ Need to keep track of our own loop counter to filter out docs don't use forloop.index
106
+ {% endcomment %}
107
+ {% assign tmp = loop_counter | modulo: 2 %}
108
+ {% if tmp == 0 %}
109
+ <td rowspan= 2 class="table-lightish text-center border">
110
+ {% assign curr_date = curr_date | date: "%s" | plus: three_days %}
111
+ {{curr_week}}
112
+ {% assign curr_week = curr_week | plus: 1 %}
113
+ </td>
114
+ {% endif %}
115
+ {% assign curr_date = curr_date | date: "%s" | plus: two_days %}
116
+ <td>{{curr_date | date: "%m/%d - %a"}}</td>
117
+
118
+
119
+ <td><a href="{{site.url}}{{page.url}}">{{page.title}} ({{page.slug}})</a>{%if page.layout == "lab"%} ๐Ÿงช {%elsif page.layout == "project" %} ๐Ÿ“ก {% endif%}</td>
120
+ </tr>
121
+ {%endif%}
122
+ {% endif %}
123
+ {% endfor%}
124
+ </tbody>
125
+ </table>
126
+ </div>
@@ -1,15 +1,12 @@
1
1
  ---
2
- layout: course
2
+ layout: course-notoc
3
3
  ---
4
4
 
5
- {{content}}
6
-
7
- <h2 id="reading-assignment">Reading Assignment</h2>
5
+ {% include youtube.html param="https://www.youtube.com/embed/dQw4w9WgXcQ" %}
8
6
 
9
7
  <p>
10
- You need to log into the textbook with the link below and complete the assigned challenge and
11
- participation questions. After the due date has passed your instructor will download your
12
- completed activities and calculate your grade. There is nothing you need to explicitly turn in
8
+ For this homework you will need to log into the textbook with the link below and complete the
9
+ assigned challenge and participation questions. There is nothing you need to explicitly turn in
13
10
  all your progress is saved automatically by the textbook.
14
11
  </p>
15
12
 
@@ -1,24 +1,13 @@
1
- {% assign tableFileParam = {{include.file}} %}
2
- {% assign tableFile = site.data[tableFileParam] %}
1
+ ---
2
+ layout: course
3
+ ---
4
+
5
+ {% assign tableFile = site.data.semester-info %}
3
6
 
4
7
  <h2 id="catalog-description">Catalog Description</h2>
5
8
 
6
9
  {{tableFile.catalog}}
7
10
 
8
- <h2 id="logistics">Logistics</h2>
9
-
10
- <ul>
11
- <li><strong>Instructor:</strong> {{tableFile.instructor}}</li>
12
- <li><strong>Email:</strong> {{tableFile.email}}</li>
13
- <li><a href="{{tableFile.textbook}}">Textbook</a></li>
14
- </ul>
15
-
16
- <h2 id="learning-objectives">Learning Objectives</h2>
17
-
18
- <ul>
19
- <li><a href="{{tableFile.learning-objectives}}">Learning Objective Alignment Sheet</a></li>
20
- </ul>
21
-
22
11
  <h2 id="coursework">Coursework</h2>
23
12
 
24
13
  <table>
@@ -42,7 +31,7 @@
42
31
  </tbody>
43
32
  </table>
44
33
 
45
- <h2 id="final-grades">Grading</h2>
34
+ <h2 id="final-grades">Grading Policy</h2>
46
35
 
47
36
  <p>
48
37
  Final grades will be assigned with the formula [Earned Points]/[Total Points]. For example if you
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shanep-class
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - shane panter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-20 00:00:00.000000000 Z
11
+ date: 2022-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -97,9 +97,7 @@ files:
97
97
  - _includes/footer.html
98
98
  - _includes/head.html
99
99
  - _includes/header.html
100
- - _includes/semester-info.html
101
100
  - _includes/svg-image.html
102
- - _includes/syllabus-policies.html
103
101
  - _includes/toc.html
104
102
  - _includes/youtube.html
105
103
  - _layouts/course-notoc.html
@@ -109,6 +107,7 @@ files:
109
107
  - _layouts/lab.html
110
108
  - _layouts/project.html
111
109
  - _layouts/reading-zybooks.html
110
+ - _layouts/syllabus.html
112
111
  - _sass/asciinema-player.scss
113
112
  - _sass/highlight.scss
114
113
  - _sass/main.scss
@@ -1,111 +0,0 @@
1
-
2
- {% assign pgs = site.lessons | sort: 'slug' %}
3
-
4
- {% assign tableFileParam = {{include.file}} %}
5
- {% assign tableFile = site.data[tableFileParam] %}
6
-
7
- {% assign one_day = 1 | times: 24 | times: 60 | times: 60 %}
8
- {% assign two_days = 2 | times: 24 | times: 60 | times: 60 %}
9
- {% assign three_days = 3 | times: 24 | times: 60 | times: 60 %}
10
- {% assign four_days = 4 | times: 24 | times: 60 | times: 60 %}
11
-
12
- {% if tableFile.start-day == "monday" %}
13
- {% assign curr_date = tableFile.start-date | date: "%s" | minus: four_days%}
14
- {% elsif tableFile.start-day == "tuesday" %}
15
- {% assign curr_date = tableFile.start-date | date: "%s" | minus: three_days%}
16
- {% elsif tableFile.start-day == "wednesday" %}
17
- {% assign curr_date = tableFile.start-date | date: "%s" | minus: two_days%}
18
- {% elsif tableFile.start-day == "thursday" %}
19
- {% assign curr_date = tableFile.start-date | date: "%s" | minus: one_day %}
20
- {% endif%}
21
-
22
- <div >
23
-
24
- <h2 id="important-links">Important links</h2>
25
- <ul>
26
- {% if tableFile.textbook %}
27
- <li><a href="{{tableFile.textbook}}">Text Book</a></li>
28
- {% endif %}
29
- <li><a href="{{tableFile.discussion}}">Discussion Forum</a></li>
30
- <li><a href="{{tableFile.github}}">Github Course Site</a></li>
31
- <li><a href="{{tableFile.grades}}">Grades</a></li>
32
- <li><a href="{{tableFile.office-hours}}">Office Hours</a></li>
33
- <li><a href="{{tableFile.learning-objectives}}">Learning Objective Alignment Sheet</a></li>
34
- </ul>
35
-
36
- <h2 id="schedule">Schedule - {{tableFile.semester}}</h2>
37
- <table style="margin:auto;height: 100%; width: 100%;">
38
- <thead>
39
- <tr>
40
- <th class="text-center">Week</th>
41
- <th>Due Date</th>
42
- <th>Lesson</th>
43
- </tr>
44
- </thead>
45
-
46
- <tbody>
47
- {% assign curr_week = 1 %}
48
- {% assign curr_module = "none" %}
49
-
50
- {% assign loop_counter = 1 %}
51
-
52
- {% for page in pgs %}
53
- {% if page.path contains "lesson" %}
54
- {% assign loop_counter = loop_counter | plus: 1 %}
55
- {% if curr_module != page.tag %}
56
- <!--Module header-->
57
- <tr>
58
- <td colspan="3" class="text-center table-darkish">{{page.tag | capitalize }}</td>
59
- </tr>
60
- {% assign curr_module = page.tag %}
61
- {% endif%}
62
-
63
-
64
- {% if curr_week == tableFile.break %}
65
- <!--Add in the break week, we need to grab the next lesson before inserting new week-->
66
- <tr>
67
- {% assign curr_date = curr_date | date: %s | plus: two_days %}
68
- <td>{{curr_date | date: "%m/%d - %a"}}</td>
69
- <td><a href="{{site.url}}{{page.url}}">{{page.title}} ({{page.slug}})</a>{%if page.layout == "lab"%} ๐Ÿงช {%elsif page.layout == "project" %} ๐Ÿ“ก {% endif%}</td>
70
- </tr>
71
- <tr>
72
- <td rowspan= 2 class="table-lightish text-center border">
73
- {% assign curr_date = curr_date | date: %s | plus: three_days %}
74
- {{curr_week}}
75
- </td>
76
- {% assign curr_date = curr_date | date: %s | plus: two_days %}
77
- <td>{{curr_date | date: "%m/%d - %a"}}</td>
78
- <td>Break</td>
79
- </tr>
80
- <tr>
81
- {% assign curr_date = curr_date | date: %s | plus: two_days %}
82
- <td>{{curr_date | date: "%m/%d - %a"}}</td>
83
- <td>Break</td>
84
- </tr>
85
- {% assign curr_week = curr_week | plus: 1 %}
86
- {%else%}
87
-
88
- <tr>
89
- {% comment %}
90
- Need to keep track of our own loop counter to filter out docs don't use forloop.index
91
- {% endcomment %}
92
- {% assign tmp = loop_counter | modulo: 2 %}
93
- {% if tmp == 0 %}
94
- <td rowspan= 2 class="table-lightish text-center border">
95
- {% assign curr_date = curr_date | date: %s | plus: three_days %}
96
- {{curr_week}}
97
- {% assign curr_week = curr_week | plus: 1 %}
98
- </td>
99
- {% endif %}
100
- {% assign curr_date = curr_date | date: %s | plus: two_days %}
101
- <td>{{curr_date | date: "%m/%d - %a"}}</td>
102
-
103
-
104
- <td><a href="{{site.url}}{{page.url}}">{{page.title}} ({{page.slug}})</a>{%if page.layout == "lab"%} ๐Ÿงช {%elsif page.layout == "project" %} ๐Ÿ“ก {% endif%}</td>
105
- </tr>
106
- {%endif%}
107
- {% endif %}
108
- {% endfor%}
109
- </tbody>
110
- </table>
111
- </div>