coursegen 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/Gemfile.lock +3 -3
- data/coursegen.gemspec +7 -2
- data/lib/coursegen.rb +12 -9
- data/lib/coursegen/cli.rb +2 -1
- data/lib/coursegen/course/{lib → data}/citem.rb +4 -2
- data/lib/coursegen/course/data/data_adaptor.rb +37 -0
- data/lib/coursegen/course/{lib → data}/lectures.rb +0 -0
- data/lib/coursegen/course/{lib → data}/section.rb +0 -0
- data/lib/coursegen/course/{lib → data}/section_def.rb +0 -0
- data/lib/coursegen/course/data/toc.rb +160 -0
- data/lib/coursegen/course/helpers/bootstrap_markup.rb +64 -0
- data/lib/coursegen/course/helpers/content_helpers.rb +10 -5
- data/lib/coursegen/course/helpers/list_of.rb +89 -0
- data/lib/coursegen/course/helpers/list_of_helpers.rb +19 -0
- data/lib/coursegen/course/helpers/navigation_helpers.rb +0 -1
- data/lib/coursegen/course/lib/helpers_.rb +1 -1
- data/lib/coursegen/course/lib/search_data_generator.rb +9 -3
- data/lib/coursegen/course/{lib → schedule}/schedule_def.rb +0 -0
- data/lib/coursegen/course/{lib → schedule}/scheduler.rb +0 -0
- data/lib/coursegen/templates.rb +10 -0
- data/lib/coursegen/version.rb +1 -1
- data/templates/Rules +18 -10
- data/templates/cg_config.rb +2 -1
- data/templates/content/bootstrap/css/custom.css +6 -0
- data/templates/content/chalkmark/chalkmark.js +30 -0
- data/templates/content/tipuesearch/img/loader.gif +0 -0
- data/templates/content/tipuesearch/img/search.png +0 -0
- data/templates/content/tipuesearch/tipuesearch_set.js +22 -0
- data/templates/content/tipuesearch/tipuesearchmin.js +14 -0
- data/templates/content/tipuesearch/tipuesearchnomin.js +444 -0
- data/templates/content/tipuesearch_logic/search.md.erb +8 -0
- data/templates/content/tipuesearch_logic/tipuesearch_content.js.erb +6 -0
- data/templates/layouts/course.html +15 -16
- data/templates/layouts/helpful_box.html +3 -0
- data/templates/layouts/main_navbar.html.erb +5 -5
- metadata +94 -26
- data/pkg/coursegen-0.0.1.gem +0 -0
- data/pkg/coursegen-0.0.2.gem +0 -0
- data/pkg/coursegen-0.0.3.gem +0 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
title: Search Results
|
3
|
+
section: hidden
|
4
|
+
---
|
5
|
+
|
6
|
+
> *note: for now, each search result includes the first several lines of the page, which may or may not include the occurences of the words you searched for. Don't let that make you think that the search didn't work. It's just that the results page can be improved (a lot)*
|
7
|
+
|
8
|
+
<div id="tipue_search_content"></div>
|
@@ -7,16 +7,10 @@
|
|
7
7
|
|
8
8
|
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css">
|
9
9
|
<link rel="stylesheet" href="/bootstrap/css/custom.css">
|
10
|
-
|
11
|
-
<!-- <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400" rel="stylesheet">
|
12
|
-
-->
|
13
10
|
<script src="https://code.jquery.com/jquery.js"></script>
|
14
|
-
|
15
|
-
<script src="/tipuesearch/
|
16
|
-
|
17
|
-
<script src="/tipuesearch/js/tipuesearch_set.js"></script>
|
18
|
-
<script src="/tipuesearch/js/tipuesearch.js"></script>
|
19
|
-
|
11
|
+
<script src="/tipuesearch/tipuesearch_set.js"></script>
|
12
|
+
<script src="/tipuesearch/tipuesearch_content.js"></script>
|
13
|
+
<script src="/tipuesearch/tipuesearchmin.js"></script>
|
20
14
|
|
21
15
|
<!-- you don't need to keep this, but it's cool for stats! -->
|
22
16
|
<meta name="generator" content="nanoc <%= Nanoc::VERSION %>">
|
@@ -37,11 +31,16 @@
|
|
37
31
|
<div class="col-xs-9">
|
38
32
|
<%= yield %>
|
39
33
|
</div>
|
40
|
-
<div class="col-xs-3
|
41
|
-
<
|
42
|
-
|
43
|
-
|
44
|
-
|
34
|
+
<div class="col-xs-3">
|
35
|
+
<div class="row well right-nav" style="color: rgb(158, 48, 48);padding-top: 4px;padding-bottom: 4px;padding-left: 8px;padding-right: 8px;margin-bottom: 8px;">
|
36
|
+
<%= render "helpful_box" %>
|
37
|
+
</div>
|
38
|
+
<div class="row well right-nav" style="padding: 5px;">
|
39
|
+
<ul>
|
40
|
+
<% SECTION_CONFIG.each do |sbb| %>
|
41
|
+
<%= section_helper(title: sbb.title, selector: sbb.selector) unless sbb.options[:hidden] %>
|
42
|
+
<% end %>
|
43
|
+
</ul>
|
45
44
|
</div>
|
46
45
|
</div>
|
47
46
|
</div>
|
@@ -51,9 +50,9 @@
|
|
51
50
|
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
52
51
|
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"></script>
|
53
52
|
<script src="/bootstrap/js/custom.js"></script>
|
53
|
+
<script src="/chalkmark/chalkmark.js"></script>
|
54
54
|
<script> $(document).ready(function() {
|
55
|
-
|
55
|
+
$('#tipue_search_input').tipuesearch({'highlightEveryTerm': true, 'show': 8, 'showURL': false, 'descriptiveWords': 50});
|
56
56
|
});</script>
|
57
|
-
|
58
57
|
</body>
|
59
58
|
</html>
|
@@ -11,11 +11,11 @@
|
|
11
11
|
</div>
|
12
12
|
</div>
|
13
13
|
<div class="col-xs-3">
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
<form role="form" class="form-inline" action="/tipuesearch_logic/search/index.html">
|
15
|
+
<div class="input-group input-group-sm">
|
16
|
+
<input type="text" class="form-control" placeholder="search..." name="q" id="tipue_search_input" autocomplete="off" required>
|
17
|
+
</div>
|
18
|
+
</form>
|
19
19
|
</div>
|
20
20
|
</div>
|
21
21
|
</div>
|
metadata
CHANGED
@@ -1,83 +1,139 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coursegen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pito Salas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.6'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: nanoc
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.6.11
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.6.11
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: thor
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
46
60
|
- !ruby/object:Gem::Version
|
47
61
|
version: '0'
|
48
62
|
type: :runtime
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
|
-
- -
|
66
|
+
- - '>='
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '0'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
70
|
+
name: rubytree
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: cri
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: nokogiri
|
57
113
|
requirement: !ruby/object:Gem::Requirement
|
58
114
|
requirements:
|
59
|
-
- -
|
115
|
+
- - '>='
|
60
116
|
- !ruby/object:Gem::Version
|
61
117
|
version: '0'
|
62
118
|
type: :runtime
|
63
119
|
prerelease: false
|
64
120
|
version_requirements: !ruby/object:Gem::Requirement
|
65
121
|
requirements:
|
66
|
-
- -
|
122
|
+
- - '>='
|
67
123
|
- !ruby/object:Gem::Version
|
68
124
|
version: '0'
|
69
125
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
126
|
+
name: activesupport
|
71
127
|
requirement: !ruby/object:Gem::Requirement
|
72
128
|
requirements:
|
73
|
-
- -
|
129
|
+
- - '>='
|
74
130
|
- !ruby/object:Gem::Version
|
75
131
|
version: '0'
|
76
132
|
type: :runtime
|
77
133
|
prerelease: false
|
78
134
|
version_requirements: !ruby/object:Gem::Requirement
|
79
135
|
requirements:
|
80
|
-
- -
|
136
|
+
- - '>='
|
81
137
|
- !ruby/object:Gem::Version
|
82
138
|
version: '0'
|
83
139
|
description: Use Nanoc to build courses and deploy them to S3
|
@@ -88,6 +144,7 @@ executables:
|
|
88
144
|
extensions: []
|
89
145
|
extra_rdoc_files: []
|
90
146
|
files:
|
147
|
+
- .gitignore
|
91
148
|
- Gemfile
|
92
149
|
- Gemfile.lock
|
93
150
|
- LICENSE.txt
|
@@ -97,25 +154,27 @@ files:
|
|
97
154
|
- coursegen.gemspec
|
98
155
|
- lib/coursegen.rb
|
99
156
|
- lib/coursegen/cli.rb
|
157
|
+
- lib/coursegen/course/data/citem.rb
|
158
|
+
- lib/coursegen/course/data/data_adaptor.rb
|
159
|
+
- lib/coursegen/course/data/lectures.rb
|
160
|
+
- lib/coursegen/course/data/section.rb
|
161
|
+
- lib/coursegen/course/data/section_def.rb
|
162
|
+
- lib/coursegen/course/data/toc.rb
|
163
|
+
- lib/coursegen/course/helpers/bootstrap_markup.rb
|
100
164
|
- lib/coursegen/course/helpers/content_helpers.rb
|
101
165
|
- lib/coursegen/course/helpers/lecture_helpers.rb
|
166
|
+
- lib/coursegen/course/helpers/list_of.rb
|
167
|
+
- lib/coursegen/course/helpers/list_of_helpers.rb
|
102
168
|
- lib/coursegen/course/helpers/logging_helpers.rb
|
103
169
|
- lib/coursegen/course/helpers/navigation_helpers.rb
|
104
170
|
- lib/coursegen/course/helpers/sidebar_helpers.rb
|
105
|
-
- lib/coursegen/course/lib/citem.rb
|
106
171
|
- lib/coursegen/course/lib/helpers_.rb
|
107
|
-
- lib/coursegen/course/lib/lectures.rb
|
108
|
-
- lib/coursegen/course/lib/schedule_def.rb
|
109
|
-
- lib/coursegen/course/lib/scheduler.rb
|
110
172
|
- lib/coursegen/course/lib/search_data_generator.rb
|
111
|
-
- lib/coursegen/course/lib/section.rb
|
112
|
-
- lib/coursegen/course/lib/section_def.rb
|
113
173
|
- lib/coursegen/course/lib/toc.rb
|
174
|
+
- lib/coursegen/course/schedule/schedule_def.rb
|
175
|
+
- lib/coursegen/course/schedule/scheduler.rb
|
114
176
|
- lib/coursegen/templates.rb
|
115
177
|
- lib/coursegen/version.rb
|
116
|
-
- pkg/coursegen-0.0.1.gem
|
117
|
-
- pkg/coursegen-0.0.2.gem
|
118
|
-
- pkg/coursegen-0.0.3.gem
|
119
178
|
- spec/citem_spec.rb
|
120
179
|
- spec/lectures_spec.rb
|
121
180
|
- spec/scheduler_spec.rb
|
@@ -130,11 +189,20 @@ files:
|
|
130
189
|
- templates/content/bootstrap/css/custom.css
|
131
190
|
- templates/content/bootstrap/fonts/glyphicons-halflings-regular.ttf
|
132
191
|
- templates/content/bootstrap/js/custom.js
|
192
|
+
- templates/content/chalkmark/chalkmark.js
|
133
193
|
- templates/content/content/index.md.erb
|
194
|
+
- templates/content/tipuesearch/img/loader.gif
|
195
|
+
- templates/content/tipuesearch/img/search.png
|
196
|
+
- templates/content/tipuesearch/tipuesearch_set.js
|
197
|
+
- templates/content/tipuesearch/tipuesearchmin.js
|
198
|
+
- templates/content/tipuesearch/tipuesearchnomin.js
|
199
|
+
- templates/content/tipuesearch_logic/search.md.erb
|
200
|
+
- templates/content/tipuesearch_logic/tipuesearch_content.js.erb
|
134
201
|
- templates/doc/readme.md
|
135
202
|
- templates/layouts/body_footer.html
|
136
203
|
- templates/layouts/body_header.html.erb
|
137
204
|
- templates/layouts/course.html
|
205
|
+
- templates/layouts/helpful_box.html
|
138
206
|
- templates/layouts/main_navbar.html.erb
|
139
207
|
- templates/lib/default.rb
|
140
208
|
homepage: ''
|
@@ -147,17 +215,17 @@ require_paths:
|
|
147
215
|
- lib
|
148
216
|
required_ruby_version: !ruby/object:Gem::Requirement
|
149
217
|
requirements:
|
150
|
-
- -
|
218
|
+
- - '>='
|
151
219
|
- !ruby/object:Gem::Version
|
152
220
|
version: '0'
|
153
221
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
222
|
requirements:
|
155
|
-
- -
|
223
|
+
- - '>='
|
156
224
|
- !ruby/object:Gem::Version
|
157
225
|
version: '0'
|
158
226
|
requirements: []
|
159
227
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.
|
228
|
+
rubygems_version: 2.0.14
|
161
229
|
signing_key:
|
162
230
|
specification_version: 4
|
163
231
|
summary: Use Nanoc to build courses and deploy them to S3
|
data/pkg/coursegen-0.0.1.gem
DELETED
Binary file
|
data/pkg/coursegen-0.0.2.gem
DELETED
Binary file
|
data/pkg/coursegen-0.0.3.gem
DELETED
Binary file
|