Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Erecting Treetop #8

Merged
2 commits merged into from

2 participants

@alexch

Cliff asked me to fix up Treetop's site docs for Erector 0.8. Here you go. Note that there's no CSS or images in the repo so I can't be 100% sure but it seems OK to me.

I also added a rudimentary Gemfile to make it easier to get started developing.

  • A
@cjheath
Collaborator

Thankyou, pulled, merged, updated, images fetched and included, and the result pushed to website

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 17 additions and 8 deletions.
  1. +2 −0  .gitignore
  2. +7 −0 Gemfile
  3. +7 −7 doc/site.rb
  4. +1 −1  doc/sitegen.rb
View
2  .gitignore
@@ -8,3 +8,5 @@ benchmark/*.log
*~
.DS_Store
pkg
+.bundle
+Gemfile.lock
View
7 Gemfile
@@ -0,0 +1,7 @@
+gem "polyglot"
+
+group :development do
+ gem "erector", "~> 0.8"
+ gem "bluecloth"
+ gem "ruby-debug"
+end
View
14 doc/site.rb
@@ -5,7 +5,7 @@
require 'bluecloth'
class Layout < Erector::Widget
- def render
+ def content
html do
head do
link :rel => "stylesheet",
@@ -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
@@ -48,12 +48,12 @@ 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
@@ -61,7 +61,7 @@ def content
class Documentation < Layout
abstract
- def content
+ def main_content
div :id => 'secondary_navigation' do
ul do
li { link_to 'Syntax', SyntacticRecognition }
@@ -103,7 +103,7 @@ def documentation_content
class Contribute < Layout
- def content
+ def main_content
bluecloth "contributing_and_planned_features.markdown"
end
end
View
2  doc/sitegen.rb
@@ -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
Something went wrong with that request. Please try again.