Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed distributions, which didn't have the static files included with them. * Removed a bunch of unused static files * Fixed the path to the bg hack for Thickbox on Macs * Added the beginnings of a test suite. Don't know yet how to test the generator in isolation. --HG-- extra : convert_revision : svn%3A8c66a899-4b77-dc11-840b-00304827d434/trunk%4023
- Loading branch information
deveiant
committed
Aug 9, 2008
1 parent
11e2451
commit b905bbf
Showing
23 changed files
with
111 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-207 Bytes
lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png
Binary file not shown.
Binary file removed
BIN
-209 Bytes
lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
--- | ||
rubyforge_project: darkfish-rdoc | ||
project_requirements: [] | ||
project_requirements: {} | ||
|
||
project_description: | ||
- A complete replacement for the default HTML generator for Rdoc, the | ||
- "API documentation-extraction system for Ruby. " | ||
project_description: "A complete replacement for the default HTML generator for Rdoc, the\n\ | ||
API documentation-extraction system for Ruby. " | ||
rubyforge_group: deveiate | ||
author_name: Michael Granger | ||
project_homepage: http://deveiate.org/projects/Darkfish-Rdoc/ | ||
project_dependencies: | ||
- "rdoc: >= 2.1.0" | ||
rdoc: ">= 2.1.0" | ||
project_summary: A pretty (different) Rdoc HTML generator | ||
project_name: Darkfish-Rdoc | ||
additional_pkgfiles: | ||
- lib/rdoc/generator/**/*.{css,rhtml,png,js} | ||
author_email: ged@FaerieMUD.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/usr/bin/env ruby | ||
|
||
BEGIN { | ||
require 'pathname' | ||
basedir = Pathname.new( __FILE__ ).dirname.parent.parent.parent | ||
|
||
libdir = basedir + "lib" | ||
|
||
$LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir ) | ||
} | ||
|
||
begin | ||
require 'spec/runner' | ||
require 'rdoc/generator/darkfish' | ||
rescue LoadError | ||
unless Object.const_defined?( :Gem ) | ||
require 'rubygems' | ||
retry | ||
end | ||
raise | ||
end | ||
|
||
|
||
describe RDoc::Generator::Darkfish do | ||
|
||
it "can create an instance via the generator factory method" do | ||
RDoc::Generator::Darkfish.for( 'darkfish' ). | ||
should be_an_instance_of( RDoc::Generator::Darkfish ) | ||
end | ||
|
||
|
||
describe "an instance" do | ||
|
||
before( :each ) do | ||
@generator = RDoc::Generator::Darkfish.for( 'darkfish' ) | ||
end | ||
|
||
|
||
it "generates the required subdirectories" do | ||
@generator.outputdir.should_receive( :mkpath ) | ||
@generator.gen_sub_directories | ||
end | ||
|
||
|
||
it "copies static files over during #write_style_sheet" do | ||
FileUtils.should_receive( :cp_r ). | ||
with( an_instance_of(Pathname), '.', :verbose => $DEBUG ). | ||
exactly( 3 ).times | ||
@generator.write_style_sheet | ||
end | ||
|
||
end | ||
end | ||
|