Skip to content

Commit

Permalink
doc publisher now includes the homepage
Browse files Browse the repository at this point in the history
git-svn-id: http://atomicobjectrb.rubyforge.org/svn/trunk/publisher@22 7bd720c3-caf9-44c9-a48d-612f81e63739
  • Loading branch information
dcrosby42 committed Nov 22, 2007
1 parent 9f1e29a commit fe8d2e8
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.txt
@@ -1,6 +1,6 @@
publisher
* http://rubyforge.org/projects/atomicobjectrb/
* http://atomicobjectrb.rubyforge.org/constructor
* http://atomicobjectrb.rubyforge.org/publisher

== DESCRIPTION:

Expand Down
26 changes: 16 additions & 10 deletions Rakefile
Expand Up @@ -23,18 +23,24 @@ Hoe.new('publisher', Publisher::VERSION) do |p|
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
end

Rake::Task['publish_docs'].instance_variable_get("@actions").clear
task :publish_docs => :setup_homepage do
puts "THIS TASK IS UNDER CONSTRUCTION"
task :setup_homepage => [ :clean, :redocs ] do
mv "doc", "rdoc"
cp_r "homepage", "doc"
mv "rdoc", "doc"
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
task :publish_docs => :setup_homepage


#Rake::Task['publish_docs'].instance_variable_get("@actions").clear
#task :publish_docs => :setup_homepage 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

# desc "Publish RDoc to RubyForge"
Expand Down
2 changes: 1 addition & 1 deletion homepage/index.erb
Expand Up @@ -18,7 +18,7 @@

<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>
<a href="rdoc/index.html"><img border=0 src="sample_code.png"></a>
</div>


Expand Down
4 changes: 2 additions & 2 deletions homepage/index.html
Expand Up @@ -16,7 +16,7 @@

<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="485,120,635,187" href="rdoc/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">
Expand All @@ -26,7 +26,7 @@

<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>
<a href="rdoc/index.html"><img border=0 src="sample_code.png"></a>
</div>


Expand Down
Binary file modified homepage/publisher_homepage.graffle
Binary file not shown.
2 changes: 1 addition & 1 deletion homepage/publisher_homepage.html
@@ -1,6 +1,6 @@
<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="485,120,635,187" href="rdoc/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">
Expand Down

0 comments on commit fe8d2e8

Please sign in to comment.