jekyll_generator 1.0.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.
Files changed (34) hide show
  1. data/History.txt +4 -0
  2. data/Manifest.txt +33 -0
  3. data/PostInstall.txt +7 -0
  4. data/README.rdoc +58 -0
  5. data/Rakefile +28 -0
  6. data/app_generators/jekyll_generator/USAGE +5 -0
  7. data/app_generators/jekyll_generator/jekyll_generator_generator.rb +87 -0
  8. data/app_generators/jekyll_generator/templates/atom.xml +27 -0
  9. data/app_generators/jekyll_generator/templates/config.yml +1 -0
  10. data/app_generators/jekyll_generator/templates/index.markdown +6 -0
  11. data/bin/jekyll_generator +19 -0
  12. data/features/development.feature +13 -0
  13. data/features/jekyll.feature +71 -0
  14. data/features/steps/common.rb +212 -0
  15. data/features/steps/env.rb +6 -0
  16. data/features/steps/jekyll.rb +24 -0
  17. data/jekyll_generators/plain_theme/plain_theme_generator.rb +3 -0
  18. data/jekyll_generators/plain_theme/templates/_layouts/default.html +61 -0
  19. data/jekyll_generators/plain_theme/templates/_layouts/post.html +86 -0
  20. data/jekyll_generators/plain_theme/templates/css/stylesheet.css +166 -0
  21. data/jekyll_generators/textmate_theme/templates/_layouts/default.html +72 -0
  22. data/jekyll_generators/textmate_theme/templates/_layouts/post.html +91 -0
  23. data/jekyll_generators/textmate_theme/templates/css/macromates.css +380 -0
  24. data/jekyll_generators/textmate_theme/textmate_theme_generator.rb +13 -0
  25. data/lib/jekyll_generator/theme_generator_base.rb +28 -0
  26. data/lib/jekyll_generator.rb +14 -0
  27. data/script/console +10 -0
  28. data/script/destroy +14 -0
  29. data/script/generate +14 -0
  30. data/spec/jekyll_generator_spec.rb +11 -0
  31. data/spec/spec.opts +1 -0
  32. data/spec/spec_helper.rb +10 -0
  33. data/tasks/rspec.rake +21 -0
  34. metadata +119 -0
@@ -0,0 +1,61 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6
+ <meta name="viewport" content="width = 750">
7
+ <link rel="stylesheet" type="text/css" href="css/stylesheet.css" charset="utf-8">
8
+ <title>{{ page.title }}</title>
9
+ </head>
10
+ <body id="intro">
11
+ <div id="wrapper">
12
+ <div id="header" onclick="javascript:window.location='/<%= name %>/'">
13
+ <h1><%= title %></h1>
14
+ </div>
15
+ <div id="navigation">
16
+ <ul>
17
+ <li id="navi_intro">
18
+ <a href="/<%= name %>/">Intro</a>
19
+ </li>
20
+ <li id="navi_source">
21
+ <a href="http://github.com/<%= github_user %>/<%= name %>">Source</a>
22
+ </li>
23
+ <li id="navi_tickets">
24
+ <a href="http://<%= github_user %>.lighthouseapp.com/projects/TODO/tickets">Tickets</a>
25
+ </li>
26
+ </ul>
27
+ </div>
28
+ <div id="page_body">
29
+ <div id="content">
30
+ {{ content }}
31
+ </div>
32
+ <div id="sidebar">
33
+ <div class="item">
34
+ <!-- Tickets -->
35
+ <h4><a href="http://<%= github_user %>.lighthouseapp.com/projects/TODO/tickets">Tickets</a></h4>
36
+ <p>
37
+ Found a bug?<br />
38
+ Request a feature?
39
+ </p>
40
+ </div>
41
+ <div class="item">
42
+ <!-- Blog -->
43
+ <h4><a href="atom.xml" id="rss_feed" name="rss_feed">Blog Posts</a></h4>
44
+ <p>
45
+ {% for post in site.posts %}
46
+ <span>{{ post.date | date_to_string }}</span> » <a href="/<%= name %>{{ post.url }}">{{ post.title }}</a><br>
47
+ {% endfor %}
48
+ </p>
49
+ </div>
50
+ <div class="item">
51
+ <script type="text/javascript" src="http://disqus.com/forums/<%= hypenated_name %>/combination_widget.js?num_items=5&color=orange&default_tab=recent"></script>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ <div id="footer">
56
+ <p><a href="http://github.com/<%= github_user %>/<%= name %>/tree/gh-pages" title="<%= github_user %>'s <%= name %> at gh-pages &mdash; GitHub">website source</a> | generated by <a href="http://github.com/mojombo/jekyll">jekyll</a> and <a href="http://drnic.github.com/jekyll_generator">jekyll_generator</a></p>
57
+ </div>
58
+ </div>
59
+ <a href="http://github.com/<%= github_user %>/<%= name %>"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
60
+ </body>
61
+ </html>
@@ -0,0 +1,86 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6
+ <meta name="viewport" content="width = 750">
7
+ <link rel="stylesheet" type="text/css" href="../../../css/stylesheet.css" charset="utf-8">
8
+ <title>{{ page.title }}</title>
9
+ </head>
10
+ <body id="intro">
11
+ <div id="wrapper">
12
+ <div id="header" onclick="javascript:window.location='/<%= name %>/'">
13
+ <h1><%= title %></h1>
14
+ </div>
15
+ <div id="navigation">
16
+ <ul>
17
+ <li id="navi_intro">
18
+ <a href="/<%= name %>/">Intro</a>
19
+ </li>
20
+ <li id="navi_source">
21
+ <a href="http://github.com/<%= github_user %>/<%= name %>">Source</a>
22
+ </li>
23
+ <li id="navi_tickets">
24
+ <a href="http://<%= github_user %>.lighthouseapp.com/projects/TODO/tickets">Tickets</a>
25
+ </li>
26
+ </ul>
27
+ </div>
28
+ <div id="page_body">
29
+ <div id="content">
30
+ {{ content }}
31
+
32
+ <script type="text/javascript">var disqus_url = "http://<%= github_user %>.github.com/<%= name %>/{{ post.url }}"; var disqus_title ="{{ post.title }}";</script>
33
+ <div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/<%= hypenated_name %>/embed.js"></script>
34
+ <a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
35
+ <script type="text/javascript">
36
+ //<![CDATA[
37
+ (function() {
38
+ var links = document.getElementsByTagName('a');
39
+ var query = '?';
40
+ for(var i = 0; i < links.length; i++) {
41
+ if(links[i].href.indexOf('#disqus_thread') >= 0) {
42
+ query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
43
+ }
44
+ }
45
+ document.write('<script type="text/javascript" src="http://disqus.com/forums/<%= hypenated_name %>/get_num_replies.js' + query + '"></' + 'script>');
46
+ })();
47
+ //]]>
48
+ </script>
49
+
50
+ </div>
51
+ <div id="sidebar">
52
+ <div class="item">
53
+ <!-- Download -->
54
+ <h4>Install Bundle</h4>
55
+ <p>Coming soon</p>
56
+ </div>
57
+ <div class="item">
58
+ <!-- Tickets -->
59
+ <h4><a href="http://<%= github_user %>.lighthouseapp.com/projects/TODO/tickets" id="tickets" name="tickets">Tickets</a></h4>
60
+ <p>
61
+ Found a bug?<br />
62
+ Request a feature?
63
+ </p>
64
+ </div>
65
+ <div class="item">
66
+ <!-- Blog -->
67
+ <a href="../../../atom.xml" id="rss_feed" name="rss_feed">Blog Posts</a>
68
+ <h4>Blog Posts</h4>
69
+ <p>
70
+ {% for post in site.posts %}
71
+ <span>{{ post.date | date_to_string }}</span> » <a href="{{ post.url }}">{{ post.title }}</a><br>
72
+ {% endfor %}
73
+ </p>
74
+ </div>
75
+ <div class="item">
76
+ <script type="text/javascript" src="http://disqus.com/forums/<%= hypenated_name %>/combination_widget.js?num_items=5&color=orange&default_tab=recent"></script>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ <div id="footer">
81
+ <p><a href="http://github.com/<%= github_user %>/<%= name %>/tree/gh-pages" title="<%= github_user %>'s <%= name %> at gh-pages &mdash; GitHub">website source</a> | generated by <a href="http://github.com/mojombo/jekyll">jekyll</a> and <a href="http://drnic.github.com/jekyll_generator">jekyll_generator</a></p>
82
+ </div>
83
+ </div>
84
+ <a href="http://github.com/<%= github_user %>/<%= name %>"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
85
+ </body>
86
+ </html>
@@ -0,0 +1,166 @@
1
+ html {
2
+ background: #1e1e1e;
3
+ }
4
+ body {
5
+ /* background: transparent url("http://macromates.com/images/site/bg_body") repeat-y 50% 0px;*/
6
+ /* font: 0.72em/170% "Lucida Grande", Verdana, Helvetica, sans-serif;*/
7
+ font: 12px "Lucida Grande", Verdana, Helvetica, sans-serif;
8
+ margin: 0;
9
+ padding: 0;
10
+ }
11
+ a[href] {
12
+ color: #525151;
13
+ }
14
+
15
+ #wrapper { /* IE workaround */
16
+ margin: 0 auto;
17
+ padding: 0;
18
+ width: 750px;
19
+ }
20
+ html>body #wrapper {
21
+ margin: 0 auto;
22
+ padding: 0;
23
+ width: auto;
24
+ max-width: 750px;
25
+ }
26
+
27
+ #header {
28
+ position: relative;
29
+ background: #<%= header_color %>;
30
+ height: 113px;
31
+ }
32
+ #header h1 {
33
+ position: absolute;
34
+ left: 60px;
35
+ top: 40px;
36
+ width: 380px;
37
+ height: 50px;
38
+ cursor: pointer;
39
+ color: white;
40
+ }
41
+
42
+ #navigation {
43
+ background: #232323;
44
+ border-bottom: 1px solid #171717;
45
+ margin: 0;
46
+ padding: 0.5em 0;
47
+ width: 100%;
48
+ }
49
+ #navigation ul {
50
+ margin: 0;
51
+ padding: 0;
52
+ list-style: none;
53
+ }
54
+ #navigation li {
55
+ display: inline;
56
+ margin: 0;
57
+ padding: 0 0 0 25px;
58
+ text-shadow: 0px 2px 4px #000;
59
+ }
60
+ #navigation li a {
61
+ color: #5b5b5b;
62
+ text-decoration: none;
63
+ }
64
+
65
+ #intro #navi_intro a,
66
+ #blog #navi_blog a,
67
+ #toc #navi_manual a,
68
+ #chapter #navi_manual a,
69
+ #wiki #navi_wiki a,
70
+ #community #navi_community a,
71
+ #contact #navi_contact a,
72
+ #navigation li a:hover {
73
+ color: #fff;
74
+ }
75
+
76
+ #page_body {
77
+ margin: 0;
78
+ padding: 0;
79
+ position: relative;
80
+ overflow: hidden;
81
+ }
82
+
83
+ #content { /* IE workaround */
84
+ margin: 0;
85
+ padding: 25px;
86
+ width: 430px;
87
+ height: 584px; /* (64+2*20+2)*6 - 2 - 2*25 */
88
+ background: #fff;
89
+ }
90
+ html>body #content {
91
+ margin: 0;
92
+ padding: 25px;
93
+ width: auto;
94
+ height: auto;
95
+ max-width: 430px;
96
+ min-height: 584px; /* (64+2*20+2)*6 - 2 - 2*25 */
97
+ background: #fff;
98
+ }
99
+ #content :first-child {
100
+ margin-top: 0px;
101
+ }
102
+ #content :first-child + h1 {
103
+ margin-top: 0px;
104
+ }
105
+
106
+ #sidebar {
107
+ margin: 0;
108
+ padding: 0;
109
+ top: 0px;
110
+ left: 480px;
111
+ width: 270px;
112
+ background-color: #e8eaea;
113
+ position: absolute;
114
+ }
115
+ #sidebar .item {
116
+ color: #5b5b5b;
117
+ border-bottom: 2px solid #fff;
118
+ padding: 20px;
119
+ min-height: 64px;
120
+ }
121
+ #sidebar .item * {
122
+ margin: 0px;
123
+ }
124
+ #sidebar .item h4 {
125
+ margin-bottom: 1em;
126
+ font-size: 120%;
127
+ }
128
+ #sidebar .item p {
129
+ font-size: 90%;
130
+ }
131
+ #sidebar .item a {
132
+ text-decoration: none;
133
+ }
134
+ #sidebar .item a:hover {
135
+ text-decoration: underline;
136
+ }
137
+
138
+ #footer {
139
+ position: relative;
140
+ margin: 0;
141
+ padding: 0.75em 25px 0.75em 25px;
142
+ min-height: 1em;
143
+ clear: both;
144
+ color: #b5b5b5;
145
+ background: #2E2E2E;
146
+ }
147
+ #footer * {
148
+ margin: 0;
149
+ padding: 0;
150
+ }
151
+ #footer a {
152
+ color: #b5b5b5;
153
+ text-decoration: none;
154
+ }
155
+ #footer a:hover {
156
+ color: #2E2E2E;
157
+ background: #b5b5b5;
158
+ text-decoration: none;
159
+ }
160
+ #footer .left {
161
+ float: left;
162
+ }
163
+ #footer .right {
164
+ float: right;
165
+ }
166
+
@@ -0,0 +1,72 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6
+ <meta name="viewport" content="width = 750">
7
+ <link rel="stylesheet" type="text/css" href="css/macromates.css" charset="utf-8">
8
+ <title>{{ page.title }}</title>
9
+ </head>
10
+ <body id="intro">
11
+ <div id="wrapper">
12
+ <div id="header" onclick="javascript:window.location='/<%= name %>/'">
13
+ <h1><%= title %></h1>
14
+ </div>
15
+ <div id="navigation">
16
+ <ul>
17
+ <li id="navi_intro">
18
+ <a href="/<%= name %>/">Intro</a>
19
+ </li>
20
+ <li id="navi_source">
21
+ <a href="http://github.com/<%= github_user %>/<%= name %>">Source</a>
22
+ </li>
23
+ <li id="navi_tickets">
24
+ <a href="http://<%= github_user %>.lighthouseapp.com/projects/TODO/tickets">Tickets</a>
25
+ </li>
26
+ <li id="navi_textmate">
27
+ <a href="http://www.macromates.com/">TextMate</a>
28
+ </li>
29
+ </ul>
30
+ </div>
31
+ <div id="page_body">
32
+ <div id="content">
33
+ {{ content }}
34
+ </div>
35
+ <div id="sidebar">
36
+ <div class="item">
37
+ <!-- Download -->
38
+ <a id="download">Install Bundle</a>
39
+ <h4>Install Bundle</h4>
40
+ <p>Coming soon</p>
41
+ </div>
42
+ <div class="item">
43
+ <!-- Tickets -->
44
+ <a href="http://<%= github_user %>.lighthouseapp.com/projects/TODO/tickets" id="tickets" name="tickets">Tickets</a>
45
+ <h4>Tickets</h4>
46
+ <p>
47
+ Found a bug?<br />
48
+ Request a feature?
49
+ </p>
50
+ </div>
51
+ <div class="item">
52
+ <!-- Blog -->
53
+ <a href="atom.xml" id="rss_feed" name="rss_feed">Blog Posts</a>
54
+ <h4>Blog Posts</h4>
55
+ <p>
56
+ {% for post in site.posts %}
57
+ <span>{{ post.date | date_to_string }}</span> » <a href="/<%= name %>{{ post.url }}">{{ post.title }}</a><br>
58
+ {% endfor %}
59
+ </p>
60
+ </div>
61
+ <div class="item">
62
+ <script type="text/javascript" src="http://disqus.com/forums/<%= hypenated_name %>/combination_widget.js?num_items=5&color=orange&default_tab=recent"></script>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ <div id="footer">
67
+ <p><a href="http://github.com/<%= github_user %>/<%= name %>/tree/gh-pages" title="<%= github_user %>'s <%= name %> at gh-pages &mdash; GitHub">website source</a> | TextMate is awesome | generated by <a href="http://github.com/mojombo/jekyll">jekyll</a> and <a href="http://drnic.github.com/jekyll_generator">jekyll_generator</a></p>
68
+ </div>
69
+ </div>
70
+ <a href="http://github.com/<%= github_user %>/<%= name %>"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
71
+ </body>
72
+ </html>
@@ -0,0 +1,91 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
+ "http://www.w3.org/TR/html4/strict.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6
+ <meta name="viewport" content="width = 750">
7
+ <link rel="stylesheet" type="text/css" href="../../../css/macromates.css" charset="utf-8">
8
+ <title>{{ page.title }}</title>
9
+ </head>
10
+ <body id="intro">
11
+ <div id="wrapper">
12
+ <div id="header" onclick="javascript:window.location='/<%= name %>/'">
13
+ <h1><%= title %></h1>
14
+ </div>
15
+ <div id="navigation">
16
+ <ul>
17
+ <li id="navi_intro">
18
+ <a href="/<%= name %>/">Intro</a>
19
+ </li>
20
+ <li id="navi_source">
21
+ <a href="http://github.com/<%= github_user %>/<%= name %>">Source</a>
22
+ </li>
23
+ <li id="navi_tickets">
24
+ <a href="http://<%= github_user %>.lighthouseapp.com/projects/TODO/tickets">Tickets</a>
25
+ </li>
26
+ <li id="navi_textmate">
27
+ <a href="http://www.macromates.com/">TextMate</a>
28
+ </li>
29
+ </ul>
30
+ </div>
31
+ <div id="page_body">
32
+ <div id="content">
33
+ {{ content }}
34
+
35
+ <script type="text/javascript">var disqus_url = "http://<%= github_user %>.github.com/<%= name %>/{{ post.url }}"; var disqus_title ="{{ post.title }}";</script>
36
+ <div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/<%= hypenated_name %>/embed.js"></script>
37
+ <a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
38
+ <script type="text/javascript">
39
+ //<![CDATA[
40
+ (function() {
41
+ var links = document.getElementsByTagName('a');
42
+ var query = '?';
43
+ for(var i = 0; i < links.length; i++) {
44
+ if(links[i].href.indexOf('#disqus_thread') >= 0) {
45
+ query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
46
+ }
47
+ }
48
+ document.write('<script type="text/javascript" src="http://disqus.com/forums/<%= hypenated_name %>/get_num_replies.js' + query + '"></' + 'script>');
49
+ })();
50
+ //]]>
51
+ </script>
52
+
53
+ </div>
54
+ <div id="sidebar">
55
+ <div class="item">
56
+ <!-- Download -->
57
+ <a id="download">Install Bundle</a>
58
+ <h4>Install Bundle</h4>
59
+ <p>Coming soon</p>
60
+ </div>
61
+ <div class="item">
62
+ <!-- Tickets -->
63
+ <a href="http://<%= github_user %>.lighthouseapp.com/projects/TODO/tickets" id="tickets" name="tickets">Tickets</a>
64
+ <h4>Tickets</h4>
65
+ <p>
66
+ Found a bug?<br />
67
+ Request a feature?
68
+ </p>
69
+ </div>
70
+ <div class="item">
71
+ <!-- Blog -->
72
+ <a href="../../../atom.xml" id="rss_feed" name="rss_feed">Blog Posts</a>
73
+ <h4>Blog Posts</h4>
74
+ <p>
75
+ {% for post in site.posts %}
76
+ <span>{{ post.date | date_to_string }}</span> » <a href="{{ post.url }}">{{ post.title }}</a><br>
77
+ {% endfor %}
78
+ </p>
79
+ </div>
80
+ <div class="item">
81
+ <script type="text/javascript" src="http://disqus.com/forums/<%= hypenated_name %>/combination_widget.js?num_items=5&color=orange&default_tab=recent"></script>
82
+ </div>
83
+ </div>
84
+ </div>
85
+ <div id="footer">
86
+ <p><a href="http://github.com/<%= github_user %>/<%= name %>/tree/gh-pages" title="<%= github_user %>'s <%= name %> at gh-pages &mdash; GitHub">website source</a> | TextMate is awesome | generated by <a href="http://github.com/mojombo/jekyll">jekyll</a> and <a href="http://drnic.github.com/jekyll_generator">jekyll_generator</a></p>
87
+ </div>
88
+ </div>
89
+ <a href="http://github.com/<%= github_user %>/<%= name %>"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
90
+ </body>
91
+ </html>