coursegen 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +16 -16
  3. data/lib/coursegen/course/helpers/content_helpers.rb +31 -0
  4. data/lib/coursegen/templates.rb +0 -3
  5. data/lib/coursegen/version.rb +1 -1
  6. data/templates/Guardfile +3 -3
  7. data/templates/Rules +21 -42
  8. data/templates/cg_config.rb +2 -1
  9. data/templates/cg_config.rb_sample +24 -30
  10. data/templates/content/bootstrap/css/custom.css +65 -23
  11. data/templates/content/bootstrap/css/full-width-pics.css +64 -0
  12. data/templates/content/bootstrap/css/prettyquote.css +31 -0
  13. data/templates/content/bootstrap/css/tipuesearch.css +163 -0
  14. data/templates/content/bootstrap/images/image1.jpg +0 -0
  15. data/templates/content/bootstrap/images/image10.jpg +0 -0
  16. data/templates/content/bootstrap/images/image2.jpg +0 -0
  17. data/templates/content/bootstrap/images/image22.jpg +0 -0
  18. data/templates/content/bootstrap/images/image3.png +0 -0
  19. data/templates/content/bootstrap/images/image4.jpg +0 -0
  20. data/templates/content/bootstrap/images/image8.jpg +0 -0
  21. data/templates/content/bootstrap/images/image8.png +0 -0
  22. data/templates/content/bootstrap/images/image9.jpg +0 -0
  23. data/templates/content/{tipuesearch/img → bootstrap/images}/loader.gif +0 -0
  24. data/templates/content/bootstrap/images/search.png +0 -0
  25. data/templates/content/{tipuesearch/tipuesearchnomin.js → bootstrap/js/tipuesearch.js} +106 -171
  26. data/templates/content/bootstrap/js/tipuesearch.min.js +12 -0
  27. data/templates/content/bootstrap/js/tipuesearch_content.js +13 -0
  28. data/templates/content/{tipuesearch → bootstrap/js}/tipuesearch_set.js +8 -7
  29. data/templates/content/content/intro/course_toc.md.erb +1 -0
  30. data/templates/layouts/banner.html.erb +9 -0
  31. data/templates/layouts/body_header.html.erb +4 -3
  32. data/templates/layouts/bottom_includes.html.erb +15 -0
  33. data/templates/layouts/course.html.erb +44 -0
  34. data/templates/layouts/main_navbar.html.erb +1 -1
  35. data/templates/layouts/nav-menus.html.erb +37 -0
  36. data/templates/layouts/sidebar.html.erb +14 -0
  37. data/templates/layouts/top_includes.html.erb +31 -0
  38. metadata +26 -16
  39. data/templates/body_footer.html +0 -8
  40. data/templates/body_header.html.erb +0 -6
  41. data/templates/content/chalkmark/chalkmark.js +0 -30
  42. data/templates/content/tipuesearch/img/search.png +0 -0
  43. data/templates/content/tipuesearch/tipuesearchmin.js +0 -14
  44. data/templates/content/tipuesearch_logic/search.md.erb +0 -8
  45. data/templates/content/tipuesearch_logic/tipuesearch_content.js.erb +0 -6
  46. data/templates/course.html +0 -59
  47. data/templates/helpful_box.html +0 -3
  48. data/templates/layouts/course.html +0 -59
  49. data/templates/main_navbar.html.erb +0 -21
@@ -1,3 +0,0 @@
1
- <div id="helpful" class="text-center">Was this helpful!?
2
- <a id="yes-link">yes</a> / <a id="no-link">no</a>
3
- </div>
@@ -1,59 +0,0 @@
1
- <!DOCTYPE HTML>
2
- <html lang="en">
3
- <head>
4
- <title><%= @item[:title] %> - <%= COURSE_SHORT_NAME %></title>
5
- <meta charset="utf-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
-
8
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
9
-
10
- <link rel="stylesheet" href="/bootstrap/css/custom.css">
11
- <script src="https://code.jquery.com/jquery.js"></script>
12
- <script src="/tipuesearch/tipuesearch_set.js"></script>
13
- <script src="/tipuesearch/tipuesearch_content.js"></script>
14
- <script src="/tipuesearch/tipuesearchmin.js"></script>
15
-
16
- <!-- you don't need to keep this, but it's cool for stats! -->
17
- <meta name="generator" content="nanoc <%= Nanoc::VERSION %>">
18
- </head>
19
- <body>
20
-
21
- <% @citem = Toc.instance.n2c(@item) %>
22
- <div class="navbar navbar-inverse navbar-fixed-top">
23
- <%= render "/main_navbar.*", toc: Toc.instance, item: item, citem: @citem %>
24
- </div>
25
- <div class="container">
26
- <div class="row">
27
- <div class="col-xs-12">
28
- <%= render "/body_header.*", toc: Toc.instance, item: item, citem: @citem %>
29
- </div>
30
- </div>
31
- <div class="row">
32
- <div class="col-xs-9">
33
- <%= yield %>
34
- </div>
35
- <div class="col-xs-3">
36
- <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;">
37
- <%= render "/helpful_box.*" %>
38
- </div>
39
- <div class="row well right-nav" style="padding: 5px;">
40
- <ul>
41
- <% SECTION_CONFIG.each do |sbb| %>
42
- <%= section_helper(title: sbb.title, selector: sbb.selector) unless sbb.options[:hidden] %>
43
- <% end %>
44
- </ul>
45
- </div>
46
- </div>
47
- </div>
48
- <%= render "/body_footer.*" %>
49
- </div>
50
- <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
51
- <!-- Include all compiled plugins (below), or include individual files as needed -->
52
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
53
- <script src="/bootstrap/js/custom.js"></script>
54
- <script src="/chalkmark/chalkmark.js"></script>
55
- <script> $(document).ready(function() {
56
- $('#tipue_search_input').tipuesearch({'highlightEveryTerm': true, 'show': 8, 'showURL': false, 'descriptiveWords': 50});
57
- });</script>
58
- </body>
59
- </html>
@@ -1,21 +0,0 @@
1
- <div class="container themebg">
2
- <div class="row">
3
- <div class="col-xs-7">
4
- <a class="navbar-title" href="/"><%= COURSE_SHORT_NAME %> - <%= COURSE_LONG_NAME %></a>
5
- </div>
6
- <div class="col-xs-2">
7
- <div class="btn-group">
8
- <%if citem.section != "root" %>
9
- <%= link_to_prev toc, item %> <%= link_to_next toc, item %>
10
- <% end %>
11
- </div>
12
- </div>
13
- <div class="col-xs-3">
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
- </div>
20
- </div>
21
- </div>