Permalink
Browse files

Working on a better doc/homepage publisher

git-svn-id: http://atomicobjectrb.rubyforge.org/svn/trunk/publisher@21 7bd720c3-caf9-44c9-a48d-612f81e63739
  • Loading branch information...
1 parent bdbcc94 commit 9f1e29a29b69d29f6165415f0c8d06c816552a9a dcrosby42 committed Nov 22, 2007
View
@@ -20,8 +20,30 @@ Hoe.new('publisher', Publisher::VERSION) do |p|
p.summary = 'Event subscription and firing mechanism'
p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
p.url = p.paragraphs_of('README.txt', 1).first.gsub(/\* /,'').split(/\n/)
-# p.url = p.paragraphs_of('README.txt', 1).first.split(/\n/)[1..-1]
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
end
-# vim: syntax=Ruby
+Rake::Task['publish_docs'].instance_variable_get("@actions").clear
+task :publish_docs => :setup_homepage do
+ puts "THIS TASK IS UNDER CONSTRUCTION"
+end
+
+#Rake::Task['test'].instance_variable_get("@actions").clear
+#task :test do
+# Rake::Task["test:units"].invoke rescue got_error = true
+# Rake::Task["test:functionals"].invoke rescue got_error = true
+# Rake::Task["test:integration"].invoke rescue got_error = true
+# Rake::Task["test:migration"].invoke rescue got_error = true
+# raise "Test failures" if got_error
+#end
+
+# desc "Publish RDoc to RubyForge"
+# task :publish_docs => [:clean, :docs] do
+# config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
+# host = "#{config["username"]}@rubyforge.org"
+#
+# remote_dir = "/var/www/gforge-projects/#{rubyforge_name}/#{remote_rdoc_dir}"
+# local_dir = 'doc'
+#
+# sh %{rsync #{rsync_args} #{local_dir}/ #{host}:#{remote_dir}}
+# end
View
@@ -0,0 +1,12 @@
+desc "Rewrite index.html using index.erb and publisher_homepage.html"
+task :index do
+ require 'erb'
+ html = ERB.new(File.read("index.erb")).result
+ fname = "index.html"
+ File.open(fname,"w") do |f|
+ f.print html
+ end
+ puts "Wrote #{fname}"
+end
+
+task :default => :index
View
@@ -0,0 +1,27 @@
+<html>
+ <head>
+ <title>Publisher - atomicobject.rb</title>
+ </head>
+ <style>
+ #rails_plugin_installation {
+ padding: 5px;
+ margin-bottom: 10px;
+ font: bold 10pt "Courier New", courier, serif
+ }
+ </style>
+
+ <body>
+
+ <div align="center">
+
+ <%= File.read("publisher_homepage.html") %>
+
+ <div id="rails_plugin_installation">$ script/plugin install svn://rubyforge.org/var/svn/atomicobjectrb/tags/publisher</div>
+
+ <a href="doc/index.html"><img border=0 src="sample_code.png"></a>
+ </div>
+
+
+
+ </body>
+</html>
View
@@ -0,0 +1,35 @@
+<html>
+ <head>
+ <title>Publisher - atomicobject.rb</title>
+ </head>
+ <style>
+ #rails_plugin_installation {
+ padding: 5px;
+ margin-bottom: 10px;
+ font: bold 10pt "Courier New", courier, serif
+ }
+ </style>
+
+ <body>
+
+ <div align="center">
+
+ <map name="GraffleExport">
+ <area shape=rect coords="14,91,163,108" href="http://atomicobjectrb.rubyforge.org/">
+ <area shape=rect coords="485,120,635,187" href="doc/index.html">
+ <area shape=rect coords="310,120,463,187" href="http://rubyforge.org/frs/?group_id=4897&release_id=16546">
+ <area shape=rect coords="481,91,635,108" href="http://atomicobject.com">
+ <area shape=rect coords="21,13,83,75" href="http://atomicobject.com">
+</map>
+<img border=0 src="publisher_homepage.png" usemap="#GraffleExport">
+
+
+ <div id="rails_plugin_installation">$ script/plugin install svn://rubyforge.org/var/svn/atomicobjectrb/tags/publisher</div>
+
+ <a href="doc/index.html"><img border=0 src="sample_code.png"></a>
+ </div>
+
+
+
+ </body>
+</html>
Binary file not shown.
@@ -0,0 +1,8 @@
+<map name="GraffleExport">
+ <area shape=rect coords="14,91,163,108" href="http://atomicobjectrb.rubyforge.org/">
+ <area shape=rect coords="485,120,635,187" href="doc/index.html">
+ <area shape=rect coords="310,120,463,187" href="http://rubyforge.org/frs/?group_id=4897&release_id=16546">
+ <area shape=rect coords="481,91,635,108" href="http://atomicobject.com">
+ <area shape=rect coords="21,13,83,75" href="http://atomicobject.com">
+</map>
+<img border=0 src="publisher_homepage.png" usemap="#GraffleExport">
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9f1e29a

Please sign in to comment.