[Kst] extragear/graphics/kst/kst/extensions/js

George Staikos staikos at kde.org
Wed May 25 20:38:23 CEST 2005


SVN commit 418148 by staikos:

fix a parse error with return and fill out the
class index.  Also don't spew errors on classes
that have no docs.


 M  +17 -0     classindex.xml  
 M  +1 -0      jsdocs.xsl  
 M  +2 -0      jsdocs2xml.pl  


--- trunk/extragear/graphics/kst/kst/extensions/js/classindex.xml #418147:418148
@@ -1,10 +1,27 @@
 <classes>
+  <class name="ColorSequence" file="bind_colorsequence"/>
   <class name="Curve" file="bind_curve"/>
+  <class name="DataObject" file="bind_dataobject"/>
   <class name="DataSource" file="bind_datasource"/>
   <class name="DataVector" file="bind_datavector"/>
+  <class name="Debug" file="bind_debug"/>
+  <class name="DebugLogEntry" file="bind_debuglogentry"/>
+  <class name="DebugLog" file="bind_debuglog"/>
+  <class name="Document" file="bind_document"/>
   <class name="Equation" file="bind_equation"/>
+  <class name="Extension" file="bind_extension"/>
   <class name="Histogram" file="bind_histogram"/>
+  <class name="Label" file="bind_label"/>
+  <class name="Legend" file="bind_legend"/>
+  <class name="Plot" file="bind_plot"/>
   <class name="Plugin" file="bind_plugin"/>
+  <class name="PluginIO" file="bind_pluginio"/>
+  <class name="PluginManager" file="bind_pluginmanager"/>
+  <class name="PluginModule" file="bind_pluginmodule"/>
+  <class name="Point" file="bind_point"/>
   <class name="PowerSpectrum" file="bind_powerspectrum"/>
+  <class name="Scalar" file="bind_scalar"/>
+  <class name="String" file="bind_string"/>
   <class name="Vector" file="bind_vector"/>
+  <class name="Window" file="bind_window"/>
 </classes>
--- trunk/extragear/graphics/kst/kst/extensions/js/jsdocs.xsl #418147:418148
@@ -12,6 +12,7 @@
 </xsl:text>
 xsltproc jsdocs-index.xsl classindex.xml &gt;index.html
     <xsl:for-each select="class">
+[ ! -e <xsl:value-of select="@file"/>.xml ] ||
 xsltproc jsdocs-class.xsl <xsl:value-of select="@file"/>.xml &gt; <xsl:value-of select="@name"/>.html</xsl:for-each>
     <xsl:text>
 </xsl:text>
--- trunk/extragear/graphics/kst/kst/extensions/js/jsdocs2xml.pl #418147:418148
@@ -121,6 +121,8 @@
 			$_ = $2;
 			if (/^$type$/) {
 				# do nothing
+			} elsif (/^returns$/) {
+				# do nothing
 			} elsif (/^description$/) {
 				$_ = $rest;
 				if (/(.*?)(\@\w+.*|$)/s) {


More information about the Kst mailing list