[Rubygems-developers] FW: RDoc: kilmer template

Curt Hibbs curt at hibbs.com
Thu Sep 9 13:45:30 EDT 2004


I'm sure you guys have seen this already, but just in case I thought I world
cross post it.

Curt

-----Original Message-----
From: jgb3 at email.byu.edu [mailto:jgb3 at email.byu.edu]
Sent: Thursday, September 09, 2004 11:59 AM
To: ruby-talk ML
Subject: RDoc: kilmer template


Sorry for the deluge of RDoc messages lately, but it's what I'm working
with right now. :)

The kilmer template does not work if you use "call-seq" comments in C
extensions (which I am). This would not be as much of an issue if the
kilmer template weren't the default used by the RubyGems stuff.

Here's a patch:

--- /usr/lib/ruby/1.8/rdoc/generators/template/html/kilmer.rb	2004-09-09
10:54:58.676769824 -0600
+++ kilmer-patched.rb	2004-09-09 10:54:43.844024744 -0600
@@ -261,7 +261,12 @@
  <table width="100%" cellspacing = 0 cellpadding=5 border=0>
  <tr><td class="methodtitle">
  <a name="%aref%">
+IF:callseq
+<b>%callseq%</b>
+ENDIF:callseq
+IFNOT:callseq
  <b>%name%</b>%params%
+ENDIF:callseq
  IF:codeurl
  <a href="%codeurl%" target="source" class="srclink">src</a>
  ENDIF:codeurl

--
Jamis Buck
jgb3 at email.byu.edu
http://www.jamisbuck.org/jamis

"I use octal until I get to 8, and then I switch to decimal."

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.757 / Virus Database: 507 - Release Date: 9/9/2004



More information about the Rubygems-developers mailing list