jekyll-theme-open-course 1.1.0 → 2.2.0

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.
@@ -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.1.0"
8
+ VERSION = "2.2.0"
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
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Use the very latest version from GitHub
4
+ gem 'jekyll-theme-open-course', git: 'https://github.com/karlstolley/jekyll-theme-open-course.git'
5
+
6
+ # Use the latest stable version from rubygems
7
+ # gem 'jekyll-theme-open-course'
@@ -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"
@@ -40,7 +46,7 @@ course:
40
46
  href: "policies/"
41
47
  id: pol
42
48
  css:
43
- font-url: "https://use.typekit.net/pig5ein.css"
49
+ font-url: "https://use.typekit.net/qqk1feg.css"
44
50
 
45
51
  collections_dir: syllabus
46
52
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  theme: Theme for Week <%= SPELLED_NUMS[counter] %>
3
- meetings: <% days.length.times do %>
3
+ meetings:<% days.length.times do %>
4
4
  - agenda:
5
5
  -
6
6
  video:<% end %>
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.1.0
4
+ version: 2.2.0
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-04-27 00:00:00.000000000 Z
11
+ date: 2020-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -68,8 +68,13 @@ files:
68
68
  - _layouts/calendar.html
69
69
  - _layouts/default.html
70
70
  - _layouts/error.html
71
+ - _layouts/links.html
71
72
  - _layouts/policies.html
72
73
  - _layouts/projects.html
74
+ - _sass/_base.scss
75
+ - _sass/_colors.scss
76
+ - _sass/_fonts.scss
77
+ - _sass/_typography.scss
73
78
  - assets/css/print.css
74
79
  - assets/css/screen.scss
75
80
  - assets/img/te.png
@@ -78,6 +83,7 @@ files:
78
83
  - exe/jtoc
79
84
  - index.md
80
85
  - lib/jtoc.rb
86
+ - lib/starter_files/Gemfile
81
87
  - lib/starter_files/_config.yml.erb
82
88
  - lib/starter_files/_data/calendar.yml.erb
83
89
  - lib/starter_files/_data/utility.yml
@@ -125,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
131
  - !ruby/object:Gem::Version
126
132
  version: '0'
127
133
  requirements: []
128
- rubygems_version: 3.0.3
134
+ rubygems_version: 3.1.2
129
135
  signing_key:
130
136
  specification_version: 4
131
137
  summary: A Jekyll theme for accessible course sites.