gegl r2263 - in trunk: . tools



Author: ok
Date: Tue Apr 29 23:21:15 2008
New Revision: 2263
URL: http://svn.gnome.org/viewvc/gegl?rev=2263&view=rev

Log:
* tools/create-reference.rb: make documentation for operations appear
in devhelp.


Modified:
   trunk/ChangeLog
   trunk/tools/create-reference.rb

Modified: trunk/tools/create-reference.rb
==============================================================================
--- trunk/tools/create-reference.rb	(original)
+++ trunk/tools/create-reference.rb	Tue Apr 29 23:21:15 2008
@@ -538,6 +538,7 @@
          file.puts "<sub name='#{element.name}' link='api.html\##{element.name.gsub(' ','_')}'/>"
        end
     }
+    file.puts "<sub name='Operations' link='operations.html'/>"
     file.puts "</chapters>"
     file.puts "<functions>"
 
@@ -548,6 +549,15 @@
        if element.is_a? Section and !element.name.empty? and element.name=~ /^Gegl/
          file.puts "<function name='#{element.name}' link='api.html\##{element.name.gsub(' ','_')}'/>"
        end
+
+
+    }
+
+    IO.foreach("operations.html"){ |line|
+        if line =~ /^<li><a href='#op_.*'>.*<\/a><\/li>/
+            opname=line.gsub(/.*op_/,'').gsub(/'.*/,'').strip
+            file.puts "<function name='gegl-#{opname}' link='operations.html#op_#{opname}'/>"
+        end
     }
 
     file.puts "</functions>"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]