Index: openacs-4/packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl 13 Sep 2002 19:02:14 -0000 1.7 +++ openacs-4/packages/acs-api-browser/tcl/acs-api-documentation-procs.tcl 15 Sep 2002 20:59:28 -0000 1.8 @@ -80,7 +80,19 @@ } return [list] } - + +ad_proc -private api_format_see_list { sees } { + Generate an HTML list of referenced procs and pages. +} { + append out "See Also:\n
<dt>
and
@@ -136,10 +148,15 @@
if { [info exists doc_elements(cvs-id)] } {
append out "[ns_quotehtml [lindex $doc_elements(cvs-id) 0]]
\n"
}
+ if { [info exists doc_elements(see)] } {
+ append out [api_format_see_list $doc_elements(see)]
+ }
return $out
}
+
+
ad_proc -public api_script_documentation {
{ -format text/html }
path
@@ -240,6 +257,16 @@
return $author_string
}
+ad_proc -private api_format_see { see } {
+ regsub -all {proc *} $see {} see
+ set see [string trim $see]
+ if {[nsv_exists api_proc_doc $see]} {
+ return "$see"
+ } else {
+ return $see
+ }
+}
+
ad_proc -public api_library_documentation {
{ -format text/html }
path