ruhoh 0.0.3 → 0.0.6
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.
- data/README.md +41 -0
- data/bin/ruhoh +6 -0
- data/lib/ruhoh/client/client.rb +26 -9
- data/lib/ruhoh/client/help.yml +4 -0
- data/lib/ruhoh/compiler.rb +7 -5
- data/lib/ruhoh/logger.rb +37 -0
- data/lib/ruhoh/page.rb +4 -4
- data/lib/ruhoh/parsers/pages.rb +9 -4
- data/lib/ruhoh/templaters/base.rb +12 -8
- data/lib/ruhoh/templaters/helpers.rb +59 -63
- data/lib/ruhoh/utils.rb +6 -1
- data/lib/ruhoh/version.rb +2 -1
- data/lib/ruhoh.rb +27 -18
- data/ruhoh.gemspec +1 -29
- data/spec/db_spec.rb +1 -1
- data/spec/page_spec.rb +1 -1
- data/spec/parsers/layouts_spec.rb +1 -1
- data/spec/parsers/pages_spec.rb +5 -5
- data/spec/parsers/posts_spec.rb +1 -1
- data/spec/parsers/routes_spec.rb +1 -1
- data/spec/parsers/site_spec.rb +1 -1
- data/system_partials/syntax/google_prettify +1 -1
- metadata +11 -39
- data/scaffolds/blog/_config.yml +0 -33
- data/scaffolds/blog/_drafts/.gitkeep +0 -0
- data/scaffolds/blog/_posts/.gitkeep +0 -0
- data/scaffolds/blog/_site.yml +0 -16
- data/scaffolds/blog/_templates/partials/categories_list +0 -3
- data/scaffolds/blog/_templates/partials/pages_list +0 -7
- data/scaffolds/blog/_templates/partials/posts_collate +0 -9
- data/scaffolds/blog/_templates/partials/posts_list +0 -1
- data/scaffolds/blog/_templates/partials/tags_list +0 -3
- data/scaffolds/blog/_templates/syntax/google_prettify/default.css +0 -52
- data/scaffolds/blog/_templates/syntax/google_prettify/desert.css +0 -34
- data/scaffolds/blog/_templates/syntax/google_prettify/sons-of-obsidian.css +0 -117
- data/scaffolds/blog/_templates/syntax/google_prettify/sunburst.css +0 -51
- data/scaffolds/blog/_templates/syntax/google_prettify/twitter-bootstrap.css +0 -30
- data/scaffolds/blog/_templates/themes/twitter/bootstrap/css/bootstrap.min.css +0 -689
- data/scaffolds/blog/_templates/themes/twitter/bootstrap/img/glyphicons-halflings-white.png +0 -0
- data/scaffolds/blog/_templates/themes/twitter/bootstrap/img/glyphicons-halflings.png +0 -0
- data/scaffolds/blog/_templates/themes/twitter/css/style.css +0 -68
- data/scaffolds/blog/_templates/themes/twitter/layouts/default.html +0 -64
- data/scaffolds/blog/_templates/themes/twitter/layouts/page.html +0 -13
- data/scaffolds/blog/_templates/themes/twitter/layouts/post.html +0 -55
- data/scaffolds/blog/_templates/themes/twitter/manifest.yml +0 -11
- data/scaffolds/blog/about.md +0 -5
- data/scaffolds/blog/archive.html +0 -11
- data/scaffolds/blog/categories.html +0 -21
- data/scaffolds/blog/config.ru +0 -9
- data/scaffolds/blog/index.html +0 -13
- data/scaffolds/blog/pages.html +0 -14
- data/scaffolds/blog/tags.html +0 -21
Binary file
|
Binary file
|
@@ -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>© {{ 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,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 }}">← Previous</a></li>
|
17
|
-
{{/ page?previous }}
|
18
|
-
{{^ page?previous }}
|
19
|
-
<li class="prev disabled"><a>← 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 →</a></li>
|
26
|
-
{{/ page?next }}
|
27
|
-
{{^ page?next }}
|
28
|
-
<li class="next disabled"><a>Next →</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'
|
data/scaffolds/blog/about.md
DELETED
data/scaffolds/blog/archive.html
DELETED
@@ -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 }}
|
data/scaffolds/blog/config.ru
DELETED
data/scaffolds/blog/index.html
DELETED
data/scaffolds/blog/pages.html
DELETED
data/scaffolds/blog/tags.html
DELETED
@@ -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 }}
|