bonsai 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +14 -1
- data/CHANGES +10 -0
- data/Gemfile +11 -0
- data/README.md +23 -11
- data/Rakefile +22 -8
- data/VERSION +1 -1
- data/bonsai.gemspec +11 -13
- data/lib/bonsai/exporter.rb +6 -3
- data/lib/bonsai/generate.rb +1 -1
- data/lib/bonsai/page.rb +4 -2
- data/lib/bonsai/sitemap.rb +2 -2
- data/lib/bonsai/templates/public/{docs/css → css}/base.less +1 -1
- data/lib/bonsai/templates/site.yml +7 -4
- data/lib/bonsai/templates/templates/default.mustache +1 -0
- data/lib/bonsai/templates/templates/products.mustache +1 -0
- data/lib/bonsai/templates/templates/shared/analytics.mustache +10 -0
- data/lib/bonsai/templates/templates/shared/head.mustache +1 -1
- data/spec/bonsai/exporter_spec.rb +1 -1
- data/spec/bonsai/generate_spec.rb +6 -6
- data/spec/bonsai/page_spec.rb +7 -13
- data/spec/support/broken/site.yml +1 -1
- data/spec/support/site.yml +6 -4
- metadata +7 -16
- data/lib/bonsai/templates/public/docs/css/base.css +0 -60
data/.gitignore
CHANGED
@@ -20,4 +20,17 @@ pkg
|
|
20
20
|
|
21
21
|
## PROJECT::SPECIFIC
|
22
22
|
spec/support/output
|
23
|
-
spec/support/public/stylesheets/base.css
|
23
|
+
spec/support/public/stylesheets/base.css
|
24
|
+
spec/tmp-generator/
|
25
|
+
|
26
|
+
## BUNDLER
|
27
|
+
bin/*
|
28
|
+
vendor/gems/environment.rb
|
29
|
+
vendor/gems/ruby/1.8/*
|
30
|
+
!vendor/gems/ruby/1.8/cache/
|
31
|
+
vendor/gems/ruby/1.9.1/*
|
32
|
+
!vendor/gems/ruby/1.9.1/cache/
|
33
|
+
vendor/gems/ruby/jruby/*
|
34
|
+
!vendor/gems/ruby/jruby/cache/
|
35
|
+
config/build_options.yml
|
36
|
+
lib/bonsai/templates/public/css/base.css
|
data/CHANGES
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
= 1.1.4 (12/02/2010)
|
2
|
+
|
3
|
+
* Using the gem bundler for development environments
|
4
|
+
- No need to install each gem under other ruby implementations
|
5
|
+
- Thanks Ralph
|
6
|
+
|
7
|
+
* Variables from `site.yml` are accessible to pages
|
8
|
+
|
9
|
+
* Added analytics.mustache partial to the generated demo site
|
10
|
+
|
1
11
|
= 1.1.3 (23/01/2010)
|
2
12
|
|
3
13
|
* Fixes for UTF-8 url strings under Ruby 1.9
|
data/Gemfile
ADDED
data/README.md
CHANGED
@@ -2,18 +2,29 @@
|
|
2
2
|
|
3
3
|
Bonsai is a static web site generator, it uses the best tools available for site construction and adheres to best web practices.
|
4
4
|
|
5
|
+
## What it does
|
6
|
+
|
7
|
+
* Provides a tiny HTML5, mustache driven template set.
|
8
|
+
* Implies a simple structure to get started faster.
|
9
|
+
* An inbuilt server for development. No setup required.
|
10
|
+
* Tasks to export the site to `output`. Upload the contents of `output`. Job done.
|
11
|
+
* Access to page hierarchy through `children`, `siblings`, `ancestors` and `navigation`.
|
12
|
+
* Generates `sitemap.xml` ready for search engines to spider your site.
|
13
|
+
* Generates `robots.txt` to be friendly to search engines.
|
14
|
+
|
5
15
|
## Getting started
|
6
16
|
|
7
17
|
* Install bonsai
|
8
|
-
|
18
|
+
|
9
19
|
`gem install bonsai --source http://gemcutter.org`
|
10
|
-
|
20
|
+
|
11
21
|
* Run the generator
|
12
|
-
|
22
|
+
|
13
23
|
`bonsai --plant [NAME]`
|
14
|
-
|
24
|
+
|
15
25
|
Type `bonsai --help` for any help with commands
|
16
26
|
|
27
|
+
|
17
28
|
## Development server
|
18
29
|
|
19
30
|
Unlike other static generators, bonsai provides you with a built in web server. Once you've generated the necessary files (generator included) you can simply start developing. Type `bonsai --cultivate` in the root of the generated site, a web server (rack, with thin) will start up.
|
@@ -35,16 +46,11 @@ The generator will provide you with a .htaccess file that will turn on gzip/defl
|
|
35
46
|
|
36
47
|
Bonsai runs under a number of Ruby implementations:
|
37
48
|
|
49
|
+
* 1.8.6 (MRI)
|
38
50
|
* 1.8.7 (MRI)
|
39
51
|
* 1.9.1 (MRI)
|
40
52
|
* JRuby
|
41
53
|
* MacRuby
|
42
|
-
|
43
|
-
## Technology used to make your site better
|
44
|
-
|
45
|
-
* [Tilt](http://github.com/rtomayko/tilt) - defaulting to [Mustache](http://github.com/defunkt/mustache)
|
46
|
-
* [Less CSS](http://lesscss.org/)
|
47
|
-
* [YUI CSS/Javascript compressor](http://developer.yahoo.com/yui/compressor/)
|
48
54
|
|
49
55
|
## Have you used this for a real job?
|
50
56
|
|
@@ -52,6 +58,12 @@ Yes. I built (and content filled) a web site with around 160 pages in 5 days.
|
|
52
58
|
|
53
59
|
When I found something that didn't quite work, was too slow or perhaps not even possible I wrote a spec and implemented it later. Better software from real requirements. (I used every feature I implemented)
|
54
60
|
|
61
|
+
## Links
|
62
|
+
|
63
|
+
* [Tilt](http://github.com/rtomayko/tilt) - defaulting to [Mustache](http://github.com/defunkt/mustache)
|
64
|
+
* [Less CSS](http://lesscss.org/)
|
65
|
+
* [YUI CSS/Javascript compressor](http://developer.yahoo.com/yui/compressor/)
|
66
|
+
|
55
67
|
|
56
68
|
## Thanks
|
57
69
|
|
@@ -76,4 +88,4 @@ When I found something that didn't quite work, was too slow or perhaps not even
|
|
76
88
|
|
77
89
|
## Copyright
|
78
90
|
|
79
|
-
Copyright (c)
|
91
|
+
Copyright (c) 2010 Ben Schwarz. See LICENSE for details.
|
data/Rakefile
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
begin
|
3
|
+
require File.dirname(__FILE__) + '/vendor/gems/environment'
|
4
|
+
rescue LoadError
|
5
|
+
raise <<-HELP
|
6
|
+
Bonsai uses the gem bundler to handle its development dependencies under
|
7
|
+
multiple environments. So if you're testing under 1.8, 1.9, jruby or otherwise
|
8
|
+
you should ensure that you have the `bundler` gem installed.
|
9
|
+
|
10
|
+
Then run `gem bundle`. Following going through these steps you should
|
11
|
+
not see this error message. If you do, please contact me or raise an issue.
|
12
|
+
(http://github.com/benschwarz/bonsai/issues)
|
13
|
+
HELP
|
14
|
+
end
|
2
15
|
|
3
|
-
require 'rubygems'
|
4
16
|
require 'rake'
|
5
17
|
|
6
18
|
begin
|
@@ -13,9 +25,11 @@ begin
|
|
13
25
|
gem.homepage = "http://github.com/benschwarz/bonsai"
|
14
26
|
gem.authors = ["Ben Schwarz"]
|
15
27
|
gem.executables = ['bonsai']
|
16
|
-
|
28
|
+
|
29
|
+
gem.files.exclude 'vendor/gems'
|
30
|
+
|
31
|
+
gem.add_development_dependency "rspec", ">= 1.3.0"
|
17
32
|
gem.add_development_dependency "yard", ">= 0"
|
18
|
-
gem.add_development_dependency "rdiscount"
|
19
33
|
gem.add_dependency "tilt", ">= 0.5"
|
20
34
|
gem.add_dependency "mustache", ">= 0.5.0"
|
21
35
|
gem.add_dependency "builder", ">= 2.1.2"
|
@@ -25,17 +39,17 @@ begin
|
|
25
39
|
gem.add_dependency "less", ">= 1.2.17"
|
26
40
|
gem.add_dependency "rack", ">= 1.1.0"
|
27
41
|
gem.add_dependency "launchy", ">= 0.3.3"
|
28
|
-
|
42
|
+
|
29
43
|
gem.post_install_message = %q{
|
30
44
|
|
31
45
|
盆栽
|
32
46
|
bonsai, tiny and beautiful
|
33
|
-
|
34
|
-
|
35
|
-
|
47
|
+
|
48
|
+
|
49
|
+
|
36
50
|
type `bonsai --help` to get started
|
37
51
|
}
|
38
|
-
|
52
|
+
|
39
53
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
40
54
|
end
|
41
55
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.4
|
data/bonsai.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{bonsai}
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ben Schwarz"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-02-14}
|
13
13
|
s.default_executable = %q{bonsai}
|
14
14
|
s.description = %q{A static site generator that uses the best toolset available}
|
15
15
|
s.email = %q{ben.schwarz@gmail.com}
|
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
".gitignore",
|
24
24
|
".kick",
|
25
25
|
"CHANGES",
|
26
|
+
"Gemfile",
|
26
27
|
"LICENSE",
|
27
28
|
"README.md",
|
28
29
|
"Rakefile",
|
@@ -48,12 +49,12 @@ Gem::Specification.new do |s|
|
|
48
49
|
"lib/bonsai/templates/output/docs/css/base.css",
|
49
50
|
"lib/bonsai/templates/output/robots.txt",
|
50
51
|
"lib/bonsai/templates/public/.htaccess",
|
51
|
-
"lib/bonsai/templates/public/
|
52
|
-
"lib/bonsai/templates/public/docs/css/base.less",
|
52
|
+
"lib/bonsai/templates/public/css/base.less",
|
53
53
|
"lib/bonsai/templates/public/robots.txt",
|
54
54
|
"lib/bonsai/templates/site.yml",
|
55
55
|
"lib/bonsai/templates/templates/default.mustache",
|
56
56
|
"lib/bonsai/templates/templates/products.mustache",
|
57
|
+
"lib/bonsai/templates/templates/shared/analytics.mustache",
|
57
58
|
"lib/bonsai/templates/templates/shared/breadcrumbs.mustache",
|
58
59
|
"lib/bonsai/templates/templates/shared/footer.mustache",
|
59
60
|
"lib/bonsai/templates/templates/shared/head.mustache",
|
@@ -118,9 +119,9 @@ Gem::Specification.new do |s|
|
|
118
119
|
|
119
120
|
盆栽
|
120
121
|
bonsai, tiny and beautiful
|
121
|
-
|
122
|
-
|
123
|
-
|
122
|
+
|
123
|
+
|
124
|
+
|
124
125
|
type `bonsai --help` to get started
|
125
126
|
}
|
126
127
|
s.rdoc_options = ["--charset=UTF-8"]
|
@@ -144,9 +145,8 @@ Gem::Specification.new do |s|
|
|
144
145
|
s.specification_version = 3
|
145
146
|
|
146
147
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
147
|
-
s.add_development_dependency(%q<rspec>, [">= 1.
|
148
|
+
s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
|
148
149
|
s.add_development_dependency(%q<yard>, [">= 0"])
|
149
|
-
s.add_development_dependency(%q<rdiscount>, [">= 0"])
|
150
150
|
s.add_runtime_dependency(%q<tilt>, [">= 0.5"])
|
151
151
|
s.add_runtime_dependency(%q<mustache>, [">= 0.5.0"])
|
152
152
|
s.add_runtime_dependency(%q<builder>, [">= 2.1.2"])
|
@@ -157,9 +157,8 @@ Gem::Specification.new do |s|
|
|
157
157
|
s.add_runtime_dependency(%q<rack>, [">= 1.1.0"])
|
158
158
|
s.add_runtime_dependency(%q<launchy>, [">= 0.3.3"])
|
159
159
|
else
|
160
|
-
s.add_dependency(%q<rspec>, [">= 1.
|
160
|
+
s.add_dependency(%q<rspec>, [">= 1.3.0"])
|
161
161
|
s.add_dependency(%q<yard>, [">= 0"])
|
162
|
-
s.add_dependency(%q<rdiscount>, [">= 0"])
|
163
162
|
s.add_dependency(%q<tilt>, [">= 0.5"])
|
164
163
|
s.add_dependency(%q<mustache>, [">= 0.5.0"])
|
165
164
|
s.add_dependency(%q<builder>, [">= 2.1.2"])
|
@@ -171,9 +170,8 @@ Gem::Specification.new do |s|
|
|
171
170
|
s.add_dependency(%q<launchy>, [">= 0.3.3"])
|
172
171
|
end
|
173
172
|
else
|
174
|
-
s.add_dependency(%q<rspec>, [">= 1.
|
173
|
+
s.add_dependency(%q<rspec>, [">= 1.3.0"])
|
175
174
|
s.add_dependency(%q<yard>, [">= 0"])
|
176
|
-
s.add_dependency(%q<rdiscount>, [">= 0"])
|
177
175
|
s.add_dependency(%q<tilt>, [">= 0.5"])
|
178
176
|
s.add_dependency(%q<mustache>, [">= 0.5.0"])
|
179
177
|
s.add_dependency(%q<builder>, [">= 2.1.2"])
|
data/lib/bonsai/exporter.rb
CHANGED
@@ -66,12 +66,15 @@ module Bonsai
|
|
66
66
|
|
67
67
|
readme = <<-README
|
68
68
|
This site was built using Bonsai (http://tinytree.info)
|
69
|
-
|
70
|
-
To make changes to the site you will require the original source files.
|
69
|
+
|
70
|
+
To make changes to the site using Bonsai you will require the original source files.
|
71
71
|
Please contact the author of your site for details.
|
72
|
+
|
73
|
+
It may also be a good idea to ensure that you've got Bonsai version #{Bonsai.version} or higher.
|
74
|
+
If you experience any unexplainable issues try uninstalling all versions of Bonsai (`gem uninstall bonsai`) and install version #{Bonsai.version} (`gem install bonsai -v #{Bonsai.version}`)
|
72
75
|
README
|
73
76
|
|
74
|
-
File.open("#{path}/ABOUT-THIS-SITE", "w") {|file| file.write(readme) }
|
77
|
+
File.open("#{path}/ABOUT-THIS-SITE.txt", "w") {|file| file.write(readme) }
|
75
78
|
end
|
76
79
|
|
77
80
|
def copy_assets
|
data/lib/bonsai/generate.rb
CHANGED
@@ -10,7 +10,7 @@ module Bonsai
|
|
10
10
|
|
11
11
|
private
|
12
12
|
def create_directories
|
13
|
-
%w(content content/index public/
|
13
|
+
%w(content content/index public/css public/js).each do |dir|
|
14
14
|
Bonsai.log "\tcreate\t#{dir}"
|
15
15
|
FileUtils.mkdir_p(File.join(@path, dir))
|
16
16
|
end
|
data/lib/bonsai/page.rb
CHANGED
@@ -142,8 +142,10 @@ module Bonsai
|
|
142
142
|
:siblings => siblings,
|
143
143
|
:parent => parent,
|
144
144
|
:ancestors => ancestors,
|
145
|
-
:navigation => Bonsai::Navigation.tree
|
146
|
-
|
145
|
+
:navigation => Bonsai::Navigation.tree,
|
146
|
+
:updated_at => mtime,
|
147
|
+
:created_at => ctime
|
148
|
+
}.merge(formatted_content).merge(disk_assets).merge(Bonsai.site)
|
147
149
|
end
|
148
150
|
|
149
151
|
private
|
data/lib/bonsai/sitemap.rb
CHANGED
@@ -8,14 +8,14 @@ module Bonsai
|
|
8
8
|
xml.instruct!
|
9
9
|
xml.urlset(:xmlns=>'http://www.sitemaps.org/schemas/sitemap/0.9') {
|
10
10
|
xml.url {
|
11
|
-
xml.loc(Bonsai.site[:
|
11
|
+
xml.loc(Bonsai.site[:url])
|
12
12
|
xml.lastmod(index.mtime.utc.strftime("%Y-%m-%d"))
|
13
13
|
xml.changefreq(change_freq)
|
14
14
|
}
|
15
15
|
|
16
16
|
Bonsai::Page.all.delete_if{|p| p.permalink === "/index"}.each do |page|
|
17
17
|
xml.url {
|
18
|
-
xml.loc(Bonsai.site[:
|
18
|
+
xml.loc(Bonsai.site[:url] + page.permalink)
|
19
19
|
xml.lastmod(page.mtime.utc.strftime("%Y-%m-%d"))
|
20
20
|
xml.changefreq(change_freq)
|
21
21
|
}
|
@@ -1,4 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# The key value pairs found below are available within the templates.
|
2
|
+
# {{site_name}}, {{url}}, {{copyright}} and {{analytics_code}}
|
3
|
+
|
4
|
+
:site_name: Your website title
|
5
|
+
:url: http://yourdomain.com
|
6
|
+
:copyright: 2010
|
7
|
+
:analytics_code: UA-00000000-0
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<script type="text/javascript">
|
2
|
+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
3
|
+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
4
|
+
</script>
|
5
|
+
<script type="text/javascript">
|
6
|
+
try {
|
7
|
+
var pageTracker = _gat._getTracker("{{analytics_code}}");
|
8
|
+
pageTracker._trackPageview();
|
9
|
+
} catch(err) {}
|
10
|
+
</script>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<head>
|
2
2
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
3
3
|
<title>{{headline}}</title>
|
4
|
-
<link rel="stylesheet" href="/
|
4
|
+
<link rel="stylesheet" href="/css/base.css" type="text/css">
|
5
5
|
<!--[if IE]>
|
6
6
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
7
7
|
<![endif]-->
|
@@ -120,7 +120,7 @@ describe Bonsai::Exporter do
|
|
120
120
|
end
|
121
121
|
|
122
122
|
it "should write a readme file to explain how the site was generated" do
|
123
|
-
File.exists?("#{Bonsai::Exporter.path}/ABOUT-THIS-SITE").should be_true
|
123
|
+
File.exists?("#{Bonsai::Exporter.path}/ABOUT-THIS-SITE.txt").should be_true
|
124
124
|
end
|
125
125
|
|
126
126
|
describe "asset compression" do
|
@@ -8,7 +8,7 @@ describe Bonsai::Generate do
|
|
8
8
|
end
|
9
9
|
|
10
10
|
it "should create base directories" do
|
11
|
-
%w(content content/index templates public public/
|
11
|
+
%w(content content/index templates public public/css public/js).each do |dir|
|
12
12
|
File.directory?("#{@path}/#{dir}").should be_true
|
13
13
|
end
|
14
14
|
end
|
@@ -18,7 +18,7 @@ describe Bonsai::Generate do
|
|
18
18
|
end
|
19
19
|
|
20
20
|
it "should copy the base.less file" do
|
21
|
-
File.exists?("#{@path}/public/
|
21
|
+
File.exists?("#{@path}/public/css/base.less").should be_true
|
22
22
|
end
|
23
23
|
|
24
24
|
it "should copy an index page" do
|
@@ -37,12 +37,12 @@ describe Bonsai::Generate do
|
|
37
37
|
File.exists?("#{@path}/site.yml").should be_true
|
38
38
|
end
|
39
39
|
|
40
|
-
it "should generate
|
41
|
-
Dir.glob("#{@path}/**/*", File::FNM_DOTMATCH).select{|f| File.file?(f) }.size.should ==
|
40
|
+
it "should generate 23 files" do
|
41
|
+
Dir.glob("#{@path}/**/*", File::FNM_DOTMATCH).select{|f| File.file?(f) }.size.should == 23
|
42
42
|
end
|
43
43
|
|
44
|
-
it "should generate
|
45
|
-
Dir.glob("#{@path}/**/*").select{|f| File.directory?(f) }.size.should ==
|
44
|
+
it "should generate 15 directories" do
|
45
|
+
Dir.glob("#{@path}/**/*").select{|f| File.directory?(f) }.size.should == 15
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
data/spec/bonsai/page_spec.rb
CHANGED
@@ -174,12 +174,18 @@ describe Bonsai::Page do
|
|
174
174
|
@page.should respond_to(:to_hash)
|
175
175
|
end
|
176
176
|
|
177
|
-
%w(slug permalink name page_title children siblings parent ancestors magic navigation).each do |key|
|
177
|
+
%w(slug permalink name page_title children siblings parent ancestors magic navigation updated_at created_at).each do |key|
|
178
178
|
it "should have a to_hash key for #{key}" do
|
179
179
|
@page.to_hash.keys.should include(key.to_sym)
|
180
180
|
end
|
181
181
|
end
|
182
182
|
|
183
|
+
it "should include global site variables from site.yml" do
|
184
|
+
@page.to_hash[:site_name].should == "Bonsai"
|
185
|
+
@page.to_hash[:url].should == "http://tinytree.info"
|
186
|
+
@page.to_hash[:copyright].should == 2010
|
187
|
+
end
|
188
|
+
|
183
189
|
describe "disk_assets" do
|
184
190
|
before :all do
|
185
191
|
@vars = @page.to_hash
|
@@ -200,18 +206,6 @@ describe Bonsai::Page do
|
|
200
206
|
@vars[:magic].size.should == 2
|
201
207
|
end
|
202
208
|
end
|
203
|
-
|
204
|
-
describe "boolean" do
|
205
|
-
it "should be false" do
|
206
|
-
pending
|
207
|
-
@vars[:child?].should be_false
|
208
|
-
end
|
209
|
-
|
210
|
-
it "should be true" do
|
211
|
-
pending
|
212
|
-
@vars[:magic?].should be_true
|
213
|
-
end
|
214
|
-
end
|
215
209
|
end
|
216
210
|
end
|
217
211
|
|
data/spec/support/site.yml
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# The key value pairs found below are available within the templating language.
|
2
|
+
# {{site_name}}, {{url}}, {{copyright}} and {{analytics_code}}
|
3
|
+
:site_name: Bonsai
|
4
|
+
:url: http://tinytree.info
|
5
|
+
:copyright: 2010
|
6
|
+
:analytics_code: UA-00000000-0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bonsai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Schwarz
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-02-14 00:00:00 +11:00
|
13
13
|
default_executable: bonsai
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.
|
23
|
+
version: 1.3.0
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: yard
|
@@ -32,16 +32,6 @@ dependencies:
|
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: "0"
|
34
34
|
version:
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rdiscount
|
37
|
-
type: :development
|
38
|
-
version_requirement:
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: "0"
|
44
|
-
version:
|
45
35
|
- !ruby/object:Gem::Dependency
|
46
36
|
name: tilt
|
47
37
|
type: :runtime
|
@@ -146,6 +136,7 @@ files:
|
|
146
136
|
- .gitignore
|
147
137
|
- .kick
|
148
138
|
- CHANGES
|
139
|
+
- Gemfile
|
149
140
|
- LICENSE
|
150
141
|
- README.md
|
151
142
|
- Rakefile
|
@@ -171,12 +162,12 @@ files:
|
|
171
162
|
- lib/bonsai/templates/output/docs/css/base.css
|
172
163
|
- lib/bonsai/templates/output/robots.txt
|
173
164
|
- lib/bonsai/templates/public/.htaccess
|
174
|
-
- lib/bonsai/templates/public/
|
175
|
-
- lib/bonsai/templates/public/docs/css/base.less
|
165
|
+
- lib/bonsai/templates/public/css/base.less
|
176
166
|
- lib/bonsai/templates/public/robots.txt
|
177
167
|
- lib/bonsai/templates/site.yml
|
178
168
|
- lib/bonsai/templates/templates/default.mustache
|
179
169
|
- lib/bonsai/templates/templates/products.mustache
|
170
|
+
- lib/bonsai/templates/templates/shared/analytics.mustache
|
180
171
|
- lib/bonsai/templates/templates/shared/breadcrumbs.mustache
|
181
172
|
- lib/bonsai/templates/templates/shared/footer.mustache
|
182
173
|
- lib/bonsai/templates/templates/shared/head.mustache
|
@@ -239,7 +230,7 @@ has_rdoc: true
|
|
239
230
|
homepage: http://github.com/benschwarz/bonsai
|
240
231
|
licenses: []
|
241
232
|
|
242
|
-
post_install_message: "\n\n \xE7\x9B\x86\xE6\xA0\xBD\n bonsai, tiny and beautiful\n
|
233
|
+
post_install_message: "\n\n \xE7\x9B\x86\xE6\xA0\xBD\n bonsai, tiny and beautiful\n\n\n\n type `bonsai --help` to get started\n "
|
243
234
|
rdoc_options:
|
244
235
|
- --charset=UTF-8
|
245
236
|
require_paths:
|
@@ -1,60 +0,0 @@
|
|
1
|
-
h1, h2, h3, h4, h5, h6, p, ol, ul {
|
2
|
-
margin: 0;
|
3
|
-
padding: 0;
|
4
|
-
font-weight: normal;
|
5
|
-
}
|
6
|
-
header, section, article, footer, aside, nav { display: block; }
|
7
|
-
#wrapper {
|
8
|
-
margin: 0 auto;
|
9
|
-
width: 660px;
|
10
|
-
}
|
11
|
-
header {
|
12
|
-
position: relative;
|
13
|
-
margin-top: 5em;
|
14
|
-
}
|
15
|
-
header span { display: block; }
|
16
|
-
header #logo {
|
17
|
-
width: 145px;
|
18
|
-
height: 145px;
|
19
|
-
-moz-border-radius: 72px;
|
20
|
-
-webkit-border-radius: 72px;
|
21
|
-
border-radius: 72px;
|
22
|
-
background-color: black;
|
23
|
-
color: white;
|
24
|
-
position: relative;
|
25
|
-
margin: 0 auto;
|
26
|
-
}
|
27
|
-
header #logo a {
|
28
|
-
color: white;
|
29
|
-
text-decoration: none;
|
30
|
-
position: absolute;
|
31
|
-
margin: 1em 0 0 1.5em;
|
32
|
-
text-align: center;
|
33
|
-
text-transform: lowercase;
|
34
|
-
}
|
35
|
-
header #navigation {
|
36
|
-
margin: 5em 0;
|
37
|
-
text-transform: lowercase;
|
38
|
-
text-align: center;
|
39
|
-
font-style: italic;
|
40
|
-
font-size: 0.8em;
|
41
|
-
}
|
42
|
-
header #navigation li:not(:last-child):after { content: " /"; }
|
43
|
-
header #navigation a {
|
44
|
-
color: black;
|
45
|
-
text-decoration: none;
|
46
|
-
}
|
47
|
-
header #navigation a:hover { text-decoration: underline; }
|
48
|
-
nav li {
|
49
|
-
display: inline;
|
50
|
-
list-style-type: none;
|
51
|
-
}
|
52
|
-
#breadcrumbs, footer {
|
53
|
-
color: #666666;
|
54
|
-
font-size: 0.7em;
|
55
|
-
}
|
56
|
-
#breadcrumbs { margin: 3em 0 0 0; }
|
57
|
-
#breadcrumbs li:not(:last-child):after { content: " →"; }
|
58
|
-
#breadcrumbs a { color: inherit; }
|
59
|
-
nav, footer { margin: 1em 0; }
|
60
|
-
h1, h2, h3, h4, h5, h6 { margin: 1.25em 0; }
|