jekyll-theme-open-course 1.0.1 → 2.1.1
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 +4 -4
- data/Gemfile.lock +17 -15
- data/_config.yml +2 -0
- data/_layouts/calendar.html +36 -21
- data/_layouts/default.html +36 -25
- data/_layouts/error.html +10 -0
- data/_layouts/links.html +10 -0
- data/_layouts/projects.html +11 -11
- data/_sass/_base.scss +108 -0
- data/_sass/_colors.scss +195 -0
- data/_sass/_fonts.scss +10 -0
- data/_sass/_typography.scss +385 -0
- data/assets/css/print.css +5 -5
- data/assets/css/screen.scss +10 -0
- data/assets/js/site.js +277 -8
- data/assets/js/sw.js +220 -0
- data/lib/jtoc.rb +15 -3
- data/lib/starter_files/Gemfile +7 -0
- data/lib/starter_files/_config.yml.erb +8 -0
- data/lib/starter_files/offline/index.md +7 -0
- data/lib/starter_files/syllabus/_policies/books.md +6 -2
- data/lib/starter_files/syllabus/_policies/materials.md +6 -2
- data/lib/starter_files/syllabus/_weeks/week-00.md.erb +1 -1
- metadata +12 -3
data/lib/jtoc.rb
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
module JTOpenCourse
|
2
2
|
|
3
|
-
require 'erb'
|
4
3
|
require 'date'
|
4
|
+
require 'erb'
|
5
|
+
require 'fileutils'
|
6
|
+
require 'pathname'
|
5
7
|
|
6
|
-
VERSION = "1.
|
8
|
+
VERSION = "2.1.1"
|
7
9
|
|
8
10
|
SPELLED_NUMS = %w(
|
9
11
|
Zero One Two Three Four Five Six Seven Eight Nine Ten Eleven Twelve Thirteen Fourteen Fifteen
|
@@ -40,7 +42,7 @@ module JTOpenCourse
|
|
40
42
|
def initialize(args, options)
|
41
43
|
@counter = 0
|
42
44
|
@name = args.first.chomp
|
43
|
-
@path = Pathname.new(File.expand_path(name, Dir.pwd))
|
45
|
+
@path = Pathname.new(File.expand_path(@name, Dir.pwd))
|
44
46
|
|
45
47
|
@anchor_date = set_value(find_next_monday(options['monday']),find_next_monday)
|
46
48
|
@week_count = set_value(options['weeks'], DEFAULT_VALUES[:weeks]).to_i
|
@@ -86,6 +88,8 @@ module JTOpenCourse
|
|
86
88
|
|
87
89
|
def create!
|
88
90
|
create_directories
|
91
|
+
create_gitignore
|
92
|
+
create_gemfile
|
89
93
|
create_config_yml
|
90
94
|
create_utility_data
|
91
95
|
create_calendar_data
|
@@ -123,6 +127,14 @@ module JTOpenCourse
|
|
123
127
|
end
|
124
128
|
end
|
125
129
|
|
130
|
+
def create_gitignore
|
131
|
+
process_file(".gitignore")
|
132
|
+
end
|
133
|
+
|
134
|
+
def create_gemfile
|
135
|
+
process_file("Gemfile")
|
136
|
+
end
|
137
|
+
|
126
138
|
def create_config_yml
|
127
139
|
process_file("_config.yml")
|
128
140
|
end
|
@@ -29,6 +29,12 @@ course:
|
|
29
29
|
email: <%= email %>
|
30
30
|
office_hours: >
|
31
31
|
Detail your office hours in `_config.yml`
|
32
|
+
ta:
|
33
|
+
name:
|
34
|
+
full_title:
|
35
|
+
url:
|
36
|
+
email:
|
37
|
+
office_hours: >
|
32
38
|
navigation:
|
33
39
|
- label: Calendar
|
34
40
|
href: "#this-week"
|
@@ -39,6 +45,8 @@ course:
|
|
39
45
|
- label: Policies
|
40
46
|
href: "policies/"
|
41
47
|
id: pol
|
48
|
+
css:
|
49
|
+
font-url: "https://use.typekit.net/qqk1feg.css"
|
42
50
|
|
43
51
|
collections_dir: syllabus
|
44
52
|
|
@@ -2,12 +2,16 @@
|
|
2
2
|
title: Books
|
3
3
|
---
|
4
4
|
|
5
|
-
<
|
5
|
+
<section class="required" markdown="1">
|
6
|
+
<h3>Required</h3>
|
6
7
|
|
7
8
|
- Required book one
|
8
9
|
- Required book two
|
10
|
+
</section>
|
9
11
|
|
10
|
-
<
|
12
|
+
<section class="recommended" markdown="1">
|
13
|
+
<h3>Recommended</h3>
|
11
14
|
|
12
15
|
- Recommended book one
|
13
16
|
- Recommended book two
|
17
|
+
</section>
|
@@ -2,12 +2,16 @@
|
|
2
2
|
title: Materials
|
3
3
|
---
|
4
4
|
|
5
|
-
<
|
5
|
+
<section class="required" markdown="1">
|
6
|
+
<h3>Required</h3>
|
6
7
|
|
7
8
|
- Required material one
|
8
9
|
- Required material two
|
10
|
+
</section>
|
9
11
|
|
10
|
-
<
|
12
|
+
<section class="recommended" markdown="1">
|
13
|
+
<h3>Recommended</h3>
|
11
14
|
|
12
15
|
- Recommended material one
|
13
16
|
- Recommended material two
|
17
|
+
</section>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-open-course
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Stolley
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -67,19 +67,28 @@ files:
|
|
67
67
|
- _data/utility.yml
|
68
68
|
- _layouts/calendar.html
|
69
69
|
- _layouts/default.html
|
70
|
+
- _layouts/error.html
|
71
|
+
- _layouts/links.html
|
70
72
|
- _layouts/policies.html
|
71
73
|
- _layouts/projects.html
|
74
|
+
- _sass/_base.scss
|
75
|
+
- _sass/_colors.scss
|
76
|
+
- _sass/_fonts.scss
|
77
|
+
- _sass/_typography.scss
|
72
78
|
- assets/css/print.css
|
73
79
|
- assets/css/screen.scss
|
74
80
|
- assets/img/te.png
|
75
81
|
- assets/js/site.js
|
82
|
+
- assets/js/sw.js
|
76
83
|
- exe/jtoc
|
77
84
|
- index.md
|
78
85
|
- lib/jtoc.rb
|
86
|
+
- lib/starter_files/Gemfile
|
79
87
|
- lib/starter_files/_config.yml.erb
|
80
88
|
- lib/starter_files/_data/calendar.yml.erb
|
81
89
|
- lib/starter_files/_data/utility.yml
|
82
90
|
- lib/starter_files/index.md.erb
|
91
|
+
- lib/starter_files/offline/index.md
|
83
92
|
- lib/starter_files/syllabus/_policies/academic-integrity.md
|
84
93
|
- lib/starter_files/syllabus/_policies/assignment-submission.md
|
85
94
|
- lib/starter_files/syllabus/_policies/books.md
|
@@ -122,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
131
|
- !ruby/object:Gem::Version
|
123
132
|
version: '0'
|
124
133
|
requirements: []
|
125
|
-
rubygems_version: 3.
|
134
|
+
rubygems_version: 3.1.2
|
126
135
|
signing_key:
|
127
136
|
specification_version: 4
|
128
137
|
summary: A Jekyll theme for accessible course sites.
|