shanep-class 1.0.13 โ†’ 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d8fab9e0d9b6b38e0f10a9cb52a75ef2489761a8dc7a9ca631a9f7af58241d5
4
- data.tar.gz: 30b5e906b8da001c2e3f35e26cc6f34718cccd7ebb46e2d7e89a68031e8b8cd4
3
+ metadata.gz: 033f34abc2faa1d1d69b1dbdfd27db42c01de7d707b2bd3b8015fd72de5b861c
4
+ data.tar.gz: 0edf668c5a73cbeb881bf9206aae2df4a83e018927d2f0bda65b2d6a015e6ab1
5
5
  SHA512:
6
- metadata.gz: 0312db86a9b682c39ac93f59e29c8e5a7c79018af6e87928ae834793cab3fb9a6778001d9ebf574e734f9c2f7570a5f3c1a21a184d1b7c2b4118c827cd96608b
7
- data.tar.gz: 6cdce43ef0e93c4b413d52e829a551d7d1865b977951883b5dbbd2ba38300f74a4a99b31153363cdc946e738184fce60c7cd8dfe3bf3e0e9ddbf157af9516d4c
6
+ metadata.gz: 6c2d3ac779786a4bfd29e29040a0a29b810e97bdc2895fa1750e6b0120be84b8da3fdf049f5b865db77c62247950b339f5f9e388f02a0c159490471165bb4e85
7
+ data.tar.gz: fc99aebecee132694856f654f213a22748cc4a21e29bf5107ae3e2389340a54a130d725e4c0323372bbcf38b87bbfb202a37ee3cdeec195c567b24c4ab8bf7e2
data/README.md CHANGED
@@ -24,20 +24,22 @@ Or install it yourself as:
24
24
 
25
25
  $ gem install shanep-class
26
26
 
27
- ## Usage
28
-
29
- You can see an example at [shanep-cs2.github.io](https://github.com/shanep-cs2/shanep-cs2.github.io)
30
-
31
27
  ## Development
32
28
 
33
29
  To set up your environment to develop this theme, run `bundle install`.
34
30
 
35
- Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
31
+ Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll
32
+ serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your
33
+ theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make
34
+ modifications to your theme and to your content, your site will regenerate and you should see the
35
+ changes in the browser after a refresh, just like normal.
36
36
 
37
- When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
38
- To add a custom directory to your theme-gem, please edit the regexp in `shanep-class.gemspec` accordingly.
37
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked
38
+ with Git will be bundled. To add a custom directory to your theme-gem, please edit the regexp in
39
+ `shanep-class.gemspec` accordingly.
39
40
 
40
41
  ## License
41
42
 
42
- The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
43
+ The theme is available as open source under the terms of the [MIT
44
+ License](https://opensource.org/licenses/MIT).
43
45
 
@@ -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>
@@ -4,9 +4,7 @@
4
4
  <li>
5
5
  {% if page.date %} {{page.date | date: "%Y-%m-%d"}}{% else %} {{"now" | date: "%Y-%m-%d" }} {% endif%} | layout: {{page.layout}}</li>
6
6
  <li>contact: {{site.data.semester-info.email}}</li>
7
- {% if site.theme %}
8
- <li>theme: {{site.theme}}</li>
9
- {% endif %}
7
+ <li>theme: <a href="https://github.com/shanep/shanep-class">shanep-class</a></li>
10
8
  {% if page.tags %}
11
9
  <li>tags:
12
10
  {% for tag in page.tags %}
@@ -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>
@@ -15,10 +15,7 @@ layout: course
15
15
  </ul>
16
16
 
17
17
  <p>
18
- Your code will be **randomly** spot checked at several points during this project. You are
19
- expected to have made progress each week. 10% of your grade will be based on completion of the
20
- checkpoints on time. <a href="https://en.wikipedia.org/wiki/Smoke_testing_(software)">smoke
21
- tested.</a> The spot checks are pass/fail, no partial credit will be given.
18
+ Your code will be <strong>randomly</strong> spot checked at several points during this project.
19
+ You are expected to have made progress each week. 10% of your grade will be based on completion
20
+ of the checkpoints on time. The spot checks are pass/fail, no partial credit will be given.
22
21
  </p>
23
-
24
-
@@ -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.13
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-19 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>