ruhoh 0.0.3 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/README.md +41 -0
  2. data/bin/ruhoh +6 -0
  3. data/lib/ruhoh/client/client.rb +26 -9
  4. data/lib/ruhoh/client/help.yml +4 -0
  5. data/lib/ruhoh/compiler.rb +7 -5
  6. data/lib/ruhoh/logger.rb +37 -0
  7. data/lib/ruhoh/page.rb +4 -4
  8. data/lib/ruhoh/parsers/pages.rb +9 -4
  9. data/lib/ruhoh/templaters/base.rb +12 -8
  10. data/lib/ruhoh/templaters/helpers.rb +59 -63
  11. data/lib/ruhoh/utils.rb +6 -1
  12. data/lib/ruhoh/version.rb +2 -1
  13. data/lib/ruhoh.rb +27 -18
  14. data/ruhoh.gemspec +1 -29
  15. data/spec/db_spec.rb +1 -1
  16. data/spec/page_spec.rb +1 -1
  17. data/spec/parsers/layouts_spec.rb +1 -1
  18. data/spec/parsers/pages_spec.rb +5 -5
  19. data/spec/parsers/posts_spec.rb +1 -1
  20. data/spec/parsers/routes_spec.rb +1 -1
  21. data/spec/parsers/site_spec.rb +1 -1
  22. data/system_partials/syntax/google_prettify +1 -1
  23. metadata +11 -39
  24. data/scaffolds/blog/_config.yml +0 -33
  25. data/scaffolds/blog/_drafts/.gitkeep +0 -0
  26. data/scaffolds/blog/_posts/.gitkeep +0 -0
  27. data/scaffolds/blog/_site.yml +0 -16
  28. data/scaffolds/blog/_templates/partials/categories_list +0 -3
  29. data/scaffolds/blog/_templates/partials/pages_list +0 -7
  30. data/scaffolds/blog/_templates/partials/posts_collate +0 -9
  31. data/scaffolds/blog/_templates/partials/posts_list +0 -1
  32. data/scaffolds/blog/_templates/partials/tags_list +0 -3
  33. data/scaffolds/blog/_templates/syntax/google_prettify/default.css +0 -52
  34. data/scaffolds/blog/_templates/syntax/google_prettify/desert.css +0 -34
  35. data/scaffolds/blog/_templates/syntax/google_prettify/sons-of-obsidian.css +0 -117
  36. data/scaffolds/blog/_templates/syntax/google_prettify/sunburst.css +0 -51
  37. data/scaffolds/blog/_templates/syntax/google_prettify/twitter-bootstrap.css +0 -30
  38. data/scaffolds/blog/_templates/themes/twitter/bootstrap/css/bootstrap.min.css +0 -689
  39. data/scaffolds/blog/_templates/themes/twitter/bootstrap/img/glyphicons-halflings-white.png +0 -0
  40. data/scaffolds/blog/_templates/themes/twitter/bootstrap/img/glyphicons-halflings.png +0 -0
  41. data/scaffolds/blog/_templates/themes/twitter/css/style.css +0 -68
  42. data/scaffolds/blog/_templates/themes/twitter/layouts/default.html +0 -64
  43. data/scaffolds/blog/_templates/themes/twitter/layouts/page.html +0 -13
  44. data/scaffolds/blog/_templates/themes/twitter/layouts/post.html +0 -55
  45. data/scaffolds/blog/_templates/themes/twitter/manifest.yml +0 -11
  46. data/scaffolds/blog/about.md +0 -5
  47. data/scaffolds/blog/archive.html +0 -11
  48. data/scaffolds/blog/categories.html +0 -21
  49. data/scaffolds/blog/config.ru +0 -9
  50. data/scaffolds/blog/index.html +0 -13
  51. data/scaffolds/blog/pages.html +0 -14
  52. data/scaffolds/blog/tags.html +0 -21
@@ -1,68 +0,0 @@
1
- /* Override some defaults */
2
- html, body {
3
- background-color: #eee;
4
- }
5
- .navbar {
6
- margin-bottom: 0;
7
- }
8
- .navbar .container{
9
- width:940px;
10
- }
11
- .container > footer {
12
- margin-top: 20px;
13
- }
14
- .container > footer p {
15
- text-align: center; /* center align it with the container */
16
- }
17
-
18
- /* The white background content wrapper */
19
- .content {
20
- background-color: #fff;
21
- padding: 20px;
22
- margin: 0 -20px; /* negative indent the amount of the padding to maintain the grid system */
23
- -webkit-border-radius: 0 0 6px 6px;
24
- -moz-border-radius: 0 0 6px 6px;
25
- border-radius: 0 0 6px 6px;
26
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15);
27
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,.15);
28
- box-shadow: 0 1px 2px rgba(0,0,0,.15);
29
- }
30
-
31
- /* Page header tweaks */
32
- .page-header {
33
- background-color: #f5f5f5;
34
- padding: 20px 20px 10px;
35
- margin: -20px -20px 20px;
36
- }
37
-
38
- /* tag_box ======================================================== */
39
-
40
- .tag_box {
41
- list-style:none;
42
- margin:0;
43
- padding:5px 0 ;
44
- overflow:hidden;
45
- }
46
- .tag_box li {
47
- line-height:28px;
48
- }
49
- .tag_box.inline li {
50
- float:left;
51
- }
52
- .tag_box a {
53
- padding: 3px 6px;
54
- margin: 2px;
55
- background: #eee;
56
- color:#005F6B;
57
- border-radius: 3px;
58
- text-decoration:none;
59
- }
60
- .tag_box a span{
61
- vertical-align:super;
62
- font-size:0.8em;
63
- }
64
- .tag_box a.active {
65
- background:#57A957;
66
- border:1px solid #4C964D;
67
- color:#FFF;
68
- }
@@ -1,64 +0,0 @@
1
- ---
2
- ---
3
- <!DOCTYPE html>
4
- <html lang="en">
5
- <head>
6
- <meta charset="utf-8">
7
- <title>{{ page.title }}</title>
8
- {{# page.description }}
9
- <meta name="description" content="{{ . }}">
10
- {{/ page.description }}
11
- <meta name="author" content="{{ site.author.name }}">
12
-
13
- <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
14
- <!--[if lt IE 9]>
15
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
16
- <![endif]-->
17
-
18
- <!-- Le styles -->
19
- <link href="{{ THEME_PATH }}/bootstrap/css/bootstrap.min.css" rel="stylesheet">
20
- <link href="{{ THEME_PATH }}/css/style.css?body=1" rel="stylesheet" type="text/css" media="all">
21
-
22
- <!-- Le fav and touch icons -->
23
- <!-- Update these with your own images
24
- <link rel="shortcut icon" href="images/favicon.ico">
25
- <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
26
- <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
27
- <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
28
- -->
29
- </head>
30
-
31
- <body>
32
-
33
- <div class="navbar">
34
- <div class="navbar-inner">
35
- <div class="container">
36
- <a class="brand" href="/">{{ site.title }}</a>
37
- <ul class="nav">
38
- {{# site.navigation?to_pages }}
39
- {{> pages_list }}
40
- {{/ site.navigation?to_pages }}
41
- </ul>
42
- </div>
43
- </div>
44
- </div>
45
-
46
- <div class="container">
47
-
48
- <div class="content">
49
- {{ content }}
50
- </div>
51
-
52
- <footer>
53
- <p>&copy; {{ site.author.name }} 2012
54
- with help from <a href="http://ruhoh.com" target="_blank" title="The Definitive Technical Blogging Framework">ruhoh</a>
55
- and <a href="http://twitter.github.com/bootstrap/" target="_blank">Twitter Bootstrap</a>
56
- </p>
57
- </footer>
58
-
59
- </div> <!-- /container -->
60
-
61
- {{{ syntax }}}
62
- {{{ analytics }}}
63
- </body>
64
- </html>
@@ -1,13 +0,0 @@
1
- ---
2
- layout : default
3
- ---
4
-
5
- <div class="page-header">
6
- <h1>{{ page.title }} {{# page.tagline }} <small>{{ . }}</small>{{/ page.tagline }}</h1>
7
- </div>
8
-
9
- <div class="row">
10
- <div class="span12">
11
- {{ content }}
12
- </div>
13
- </div>
@@ -1,55 +0,0 @@
1
- ---
2
- layout : default
3
- ---
4
- <div class="page-header">
5
- <h1>{{ page.title }} {{# page.tagline }} <small>{{ . }}</small>{{/ page.tagline }}</h1>
6
- </div>
7
-
8
- <div class="row">
9
- <div class="span8">
10
- {{ content }}
11
- <hr>
12
- <div class="pagination">
13
- <ul>
14
- <ul>
15
- {{# page?previous }}
16
- <li class="prev"><a href="{{ url }}" title="{{ title }}">&larr; Previous</a></li>
17
- {{/ page?previous }}
18
- {{^ page?previous }}
19
- <li class="prev disabled"><a>&larr; Previous</a></li>
20
- {{/ page?previous }}
21
-
22
- <li><a href="/archive.html">Archive</a></li>
23
-
24
- {{# page?next }}
25
- <li class="next"><a href="{{ url }}" title="{{ title }}">Next &rarr;</a></li>
26
- {{/ page?next }}
27
- {{^ page?next }}
28
- <li class="next disabled"><a>Next &rarr;</a>
29
- {{/ page?next }}
30
- </ul>
31
- </ul>
32
- </div>
33
- <hr>
34
- {{{ comments }}}
35
- </div>
36
-
37
- <div class="span4">
38
- <h4>Published</h4>
39
- <div class="date"><span>{{ page.date }}</span></div>
40
- <br>
41
- <h4>Categories</h4>
42
- <ul class="tag_box">
43
- {{# page.categories?to_categories }}
44
- {{> categories_list }}
45
- {{/ page.categories?to_categories }}
46
- </ul>
47
- <br>
48
- <h4>Tags</h4>
49
- <ul class="tag_box">
50
- {{# page.tags?to_tags }}
51
- {{> tags_list }}
52
- {{/ page.tags?to_tags }}
53
- </ul>
54
- </div>
55
- </div>
@@ -1,11 +0,0 @@
1
- ---
2
- name : twitter
3
- website : http://twitter.github.com/bootstrap
4
- git_url : git://github.com/ruhoh/theme-twitter.git
5
- source_url : https://github.com/ruhoh/theme-twitter
6
- author:
7
- name : "Jacob Thornton and Mark Otto"
8
- website : http://twitter.github.com/bootstrap
9
-
10
- ruhoh:
11
- version: '0.0.x'
@@ -1,5 +0,0 @@
1
- ---
2
- layout : page
3
- ---
4
-
5
- ## About Me
@@ -1,11 +0,0 @@
1
- ---
2
- layout: page
3
- title : Archive
4
- header : Post Archive
5
- tagline : "hello i am jade"
6
- group: navigation
7
- ---
8
-
9
- {{# _posts.collated }}
10
- {{> posts_collate }}
11
- {{/ _posts.collated }}
@@ -1,21 +0,0 @@
1
- ---
2
- layout: page
3
- title: Categories
4
- header: Posts By Category
5
- group: navigation
6
- ---
7
-
8
- <ul class="tag_box inline">
9
- {{# ?to_categories }}
10
- {{> categories_list }}
11
- {{/ ?to_categories }}
12
- </ul>
13
-
14
- {{# ?to_categories }}
15
- <h2>{{ name }} ({{ count }})</h2>
16
- <ul>
17
- {{# posts?to_posts }}
18
- {{> posts_list }}
19
- {{/ posts?to_posts }}
20
- </ul>
21
- {{/ ?to_categories }}
@@ -1,9 +0,0 @@
1
- require 'rack'
2
- require 'ruhoh'
3
-
4
- Ruhoh.setup
5
-
6
- use Rack::Lint
7
- use Rack::ShowExceptions
8
- use Rack::Static, {:urls => ["/#{Ruhoh.folders.media}", "/#{Ruhoh.folders.templates}"]}
9
- run Ruhoh::Previewer.new
@@ -1,13 +0,0 @@
1
- ---
2
- title: Home
3
- description:
4
-
5
- layout : page
6
- ---
7
-
8
- <h3>Start</h3>
9
- <p>
10
- Ruhoh is all about the command-line.
11
- <br>Check out the goods:
12
- </p>
13
- <pre><code>$ ruhoh help</code></pre>
@@ -1,14 +0,0 @@
1
- ---
2
- layout: page
3
- title: Pages
4
- header: Pages
5
- group: navigation
6
- ---
7
-
8
- <h2>All Pages</h2>
9
-
10
- <ul>
11
- {{# ?to_pages }}
12
- {{> pages_list }}
13
- {{/ ?to_pages }}
14
- </ul>
@@ -1,21 +0,0 @@
1
- ---
2
- layout: page
3
- title: Tags
4
- header: Posts By Tag
5
- group: navigation
6
- ---
7
-
8
-
9
- <ul class="tag_box inline">
10
- {{# ?to_tags }}
11
- {{> tags_list }}
12
- {{/ ?to_tags }}
13
- </ul>
14
-
15
-
16
- {{# ?to_tags }}
17
- <h2 id="{{name}}-ref">{{name}}</h2>
18
- {{# posts?to_posts }}
19
- <li><a href="{{url}}">{{title}}</a></li>
20
- {{/ posts?to_posts }}
21
- {{/ ?to_tags }}