// ===================================================================== // Generate Quark overview helpfile // nescivi, jan 2009 // ===================================================================== ( q = Quarks.local.findQuark("Dimple").info; ( ~header = " \n \n \n "++ q.name ++ " \n \n \n

" ++ q.name ++ "

\n

" ++ q.summary ++ "

\n

by" + q.author ++ "

\n "; ); ~footer = ""; ( ~string = ""; (Quarks.local.path +/+ q.path +/+ "Help/*.*").pathMatch.collect{ |it| PathName( it ).asRelativePath( Quarks.local.path +/+ q.path +/+ "Help" ); }.do{ |it| ~string = ~string + ""++it++"
\n"; }; ); f = File.new( Quarks.local.path +/+ q.path +/+ "Help/" ++ q.name ++".html", "w" ); f.write( ~header ); f.write( ~string ); f.write( ~footer ); f.close; ); // edit the quark file here to point to the right helpdoc (Quarks.local.path +/+ "DIRECTORY" +/+ q.name ++".quark").openDocument;