Skip to content

Commit

Permalink
bring site up to Erector 0.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
alexch committed Oct 27, 2010
1 parent c961bc1 commit 9ee2d20
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions Gemfile
@@ -0,0 +1,6 @@
gem "polyglot"

group :development do
gem "erector", "~> 0.8"
gem "bluecloth"
end
14 changes: 7 additions & 7 deletions doc/site.rb
Expand Up @@ -5,7 +5,7 @@
require 'bluecloth'

class Layout < Erector::Widget
def render
def content
html do
head do
link :rel => "stylesheet",
Expand All @@ -29,8 +29,8 @@ def render
end
end
div :id => 'middle' do
div :id => 'content' do
content
div :id => 'main_content' do
main_content
end
end
div :id => 'bottom' do
Expand All @@ -48,20 +48,20 @@ def main_navigation
end
end

def content
def main_content
end
end

class Index < Layout
def content
def main_content
bluecloth "index.markdown"
end
end

class Documentation < Layout
abstract

def content
def main_content
div :id => 'secondary_navigation' do
ul do
li { link_to 'Syntax', SyntacticRecognition }
Expand Down Expand Up @@ -103,7 +103,7 @@ def documentation_content


class Contribute < Layout
def content
def main_content
bluecloth "contributing_and_planned_features.markdown"
end
end
Expand Down
2 changes: 1 addition & 1 deletion doc/sitegen.rb
Expand Up @@ -16,7 +16,7 @@ def generate_site

def generate_html
File.open(absolute_path, 'w') do |file|
file.write(new.render)
file.write(new.to_html)
end
end

Expand Down

0 comments on commit 9ee2d20

Please sign in to comment.