webby 0.9.2 → 0.9.3
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/History.txt +13 -0
- data/Manifest.txt +44 -33
- data/Rakefile +2 -2
- data/bin/webby +33 -0
- data/bin/webby-gen +33 -0
- data/examples/presentation/content/presentation/s5/bodybg.gif +0 -0
- data/examples/presentation/content/presentation/s5/print.css +25 -1
- data/examples/webby/content/release-notes/rel-0-9-3/index.txt +49 -0
- data/lib/webby.rb +3 -10
- data/lib/webby/apps/generator.rb +41 -48
- data/lib/webby/apps/main.rb +22 -0
- data/lib/webby/auto_builder.rb +78 -6
- data/lib/webby/builder.rb +9 -9
- data/lib/webby/core_ext/kernel.rb +5 -0
- data/lib/webby/filters/wiki_words.rb +14 -0
- data/lib/webby/helpers/url_helper.rb +6 -0
- data/lib/webby/journal.rb +126 -0
- data/lib/webby/renderer.rb +11 -6
- data/lib/webby/resources/meta_file.rb +8 -5
- data/lib/webby/stelan/paginator.rb +2 -2
- data/lib/webby/tasks/growl.rake +4 -3
- data/spec/data/outline/basic.out +81 -0
- data/spec/data/outline/basic.txt +25 -0
- data/spec/data/outline/no_clobber.out +86 -0
- data/spec/data/outline/numbering.out +81 -0
- data/spec/data/outline/numbering_only.out +21 -0
- data/spec/data/outline/toc_range_1.out +66 -0
- data/spec/data/outline/toc_range_2.out +55 -0
- data/spec/data/outline/toc_style.out +81 -0
- data/spec/data/{Sitefile → site/Sitefile} +0 -0
- data/spec/data/{content → site/content}/_partial.txt +0 -0
- data/spec/data/{content → site/content}/css/coderay.css +0 -0
- data/spec/data/{content → site/content}/css/site.css +0 -0
- data/spec/data/{content → site/content}/css/tumblog.css +0 -0
- data/spec/data/{content → site/content}/images/tumblog/permalink.gif +0 -0
- data/spec/data/{content → site/content}/images/tumblog/rss.gif +0 -0
- data/spec/data/{content → site/content}/index.txt +0 -0
- data/spec/data/{content → site/content}/photos.txt +0 -0
- data/spec/data/{content → site/content}/tumblog/200806/the-noble-chicken/index.txt +0 -0
- data/spec/data/{content → site/content}/tumblog/200807/historical-perspectives-on-the-classic-chicken-joke/index.txt +0 -0
- data/spec/data/{content → site/content}/tumblog/200807/mad-city-chickens/index.txt +0 -0
- data/spec/data/{content → site/content}/tumblog/200807/the-wisdom-of-the-dutch/index.txt +0 -0
- data/spec/data/{content → site/content}/tumblog/200807/up-a-tree/index.txt +0 -0
- data/spec/data/{content → site/content}/tumblog/index.txt +0 -0
- data/spec/data/{content → site/content}/tumblog/rss.txt +0 -0
- data/spec/data/{layouts → site/layouts}/default.txt +0 -0
- data/spec/data/{layouts → site/layouts}/tumblog/default.txt +0 -0
- data/spec/data/{layouts → site/layouts}/tumblog/post.txt +0 -0
- data/spec/data/{lib → site/lib}/breadcrumbs.rb +0 -0
- data/spec/data/{lib → site/lib}/tumblog_helper.rb +0 -0
- data/spec/data/{tasks → site/tasks}/tumblog.rake +0 -0
- data/spec/data/{templates → site/templates}/_partial.erb +0 -0
- data/spec/data/{templates → site/templates}/atom_feed.erb +0 -0
- data/spec/data/{templates → site/templates}/page.erb +0 -0
- data/{examples/website → spec/data/site}/templates/presentation.erb +0 -0
- data/spec/data/{templates → site/templates}/tumblog/conversation.erb +0 -0
- data/spec/data/{templates → site/templates}/tumblog/link.erb +0 -0
- data/spec/data/{templates → site/templates}/tumblog/photo.erb +0 -0
- data/spec/data/{templates → site/templates}/tumblog/post.erb +0 -0
- data/spec/data/{templates → site/templates}/tumblog/quote.erb +0 -0
- data/spec/spec_helper.rb +4 -4
- data/spec/webby/apps/generator_spec.rb +3 -2
- data/spec/webby/filters/basepath_spec.rb +167 -0
- data/spec/webby/filters/outline_spec.rb +92 -0
- data/spec/webby/renderer_spec.rb +1 -1
- data/spec/webby/resources/db_spec.rb +1 -1
- data/spec/webby/resources/layout_spec.rb +1 -1
- data/spec/webby/resources/meta_file_spec.rb +27 -13
- data/spec/webby/resources/page_spec.rb +1 -1
- data/spec/webby/resources/resource_spec.rb +1 -1
- data/spec/webby/resources_spec.rb +1 -1
- data/tasks/gem.rake +93 -32
- data/tasks/manifest.rake +3 -4
- data/tasks/rubyforge.rake +2 -4
- metadata +67 -56
- data/lib/webby/tasks/heel.rake +0 -28
- data/spec/data/templates/presentation.erb +0 -40
data/lib/webby/tasks/heel.rake
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
|
2
|
-
namespace :heel do
|
3
|
-
|
4
|
-
desc 'Start the heel server to view website (not for Windows)'
|
5
|
-
task :start do
|
6
|
-
sh "heel --root #{SITE.output_dir} --port #{SITE.heel_port} --daemonize"
|
7
|
-
end
|
8
|
-
|
9
|
-
desc 'Stop the heel server'
|
10
|
-
task :stop do
|
11
|
-
sh "heel --kill"
|
12
|
-
end
|
13
|
-
|
14
|
-
task :autorun do
|
15
|
-
heel_exe = File.join(Gem.bindir, 'heel')
|
16
|
-
@heel_spawner = Spawner.new(Spawner.ruby, heel_exe, '--root', SITE.output_dir, '--port', SITE.heel_port.to_s, :pause => 86_400)
|
17
|
-
@heel_spawner.start
|
18
|
-
end
|
19
|
-
|
20
|
-
task :autobuild => :autorun do
|
21
|
-
at_exit {@heel_spawner.stop if defined? @heel_spawner and not @heel_spawner.nil?}
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
25
|
-
|
26
|
-
task :autobuild => 'heel:autobuild'
|
27
|
-
|
28
|
-
# EOF
|
@@ -1,40 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: <%= title %>
|
3
|
-
created_at: <%= Time.now.to_y %>
|
4
|
-
author: You
|
5
|
-
company: Company
|
6
|
-
copyright: Creative Commons
|
7
|
-
filter:
|
8
|
-
- erb
|
9
|
-
- textile
|
10
|
-
- slides
|
11
|
-
layout: presentation
|
12
|
-
---
|
13
|
-
h1. Presentation Title
|
14
|
-
|
15
|
-
Clever introductory text that will grab the audience's attention.
|
16
|
-
|
17
|
-
|
18
|
-
h1. Title of the First Slide
|
19
|
-
|
20
|
-
A little more build up before really getting into the meat of it.
|
21
|
-
|
22
|
-
|
23
|
-
h1. Title of the Second Slide
|
24
|
-
|
25
|
-
Finally, some code!
|
26
|
-
|
27
|
-
<%% uv :lang => 'ruby', :line_numbers => false do -%>
|
28
|
-
class EnglishMajor
|
29
|
-
def supercilious
|
30
|
-
'behaving or looking as though one thinks one is superior to others'
|
31
|
-
end
|
32
|
-
end
|
33
|
-
<%% end -%>
|
34
|
-
|
35
|
-
|
36
|
-
h1. The Final Slide
|
37
|
-
|
38
|
-
And that about sums it up!
|
39
|
-
|
40
|
-
Thanks for visiting
|