Browse files

change in website build process

  • Loading branch information...
1 parent 223775b commit 8688bd1e52b487b67b8115237e2ba2516ecba90d @danchoi committed Feb 22, 2011
Showing with 12 additions and 18 deletions.
  1. +2 −3 README.markdown
  2. +10 −15 Rakefile
View
5 README.markdown
@@ -4,6 +4,8 @@ SoyWiki turns Vim into a powerful, lean, and fast wiki. It's got all the
protein of a more conventional wiki, but less saturated fat and no
cholesterol.
+[screenshots]
+
A quick overview of SoyWiki's characteristics and features:
* flat text files
@@ -71,9 +73,6 @@ If you run into any PATH errors, try the following: Install the RVM
Version Manager, then install Ruby 1.9.2 through RVM, and then run `gem
install soywiki`. This should solve any installation issues.
-
-
-
If you ever want to uninstall SoyWiki from your system, execute this command:
gem uninstall soywiki
View
25 Rakefile
@@ -30,29 +30,24 @@ end
desc "build and push website"
task :web => :build_webpage do
puts "Building and pushing website"
- `scp website/soywiki.html zoe2@instantwatcher.com:~/danielchoi.com/public/software/`
- `scp -r website/images-soywiki zoe2@instantwatcher.com:~/danielchoi.com/public/software/`
- `open http://danielchoi.com/software/soywiki.html`
-end
-
-desc "build website locally"
-task :build_web_locally => :build_webpage do
- Dir.chdir("website") do
- `open soywiki.html`
+ Dir.chdir "../project-webpages" do
+ `scp out/soywiki.html zoe2@instantwatcher.com:~/danielchoi.com/public/software/`
+ `rsync -avz out/images-soywiki zoe2@instantwatcher.com:~/danielchoi.com/public/software/`
+ `rsync -avz out/stylesheets zoe2@instantwatcher.com:~/danielchoi.com/public/software/`
+ `rsync -avz out/lightbox2 zoe2@instantwatcher.com:~/danielchoi.com/public/software/`
end
+ `open http://danielchoi.com/software/soywiki.html`
end
desc "build webpage"
task :build_webpage do
- $LOAD_PATH.unshift 'website'
- require 'gen'
- Dir.chdir("website") do
- html = Webpage.generate(Soywiki::VERSION)
- File.open('soywiki.html', 'w') {|f| f.puts html}
+ `cp README.markdown ../project-webpages/src/soywiki.README.markdown`
+ Dir.chdir "../project-webpages" do
+ puts `ruby gen.rb soywiki #{Soywiki::VERSION}`
+ #`open out/soywiki.html`
end
end
-
desc "Run tests"
task :test do
$:.unshift File.expand_path("test")

0 comments on commit 8688bd1

Please sign in to comment.