Page 26 of 28 FirstFirst ... 162425262728 LastLast
Results 251 to 260 of 271

Thread: ext-doc: ExtJS-style JavaScript comments processor

  1. #251
    Ext User
    Join Date
    Dec 2010
    Location
    CA
    Posts
    1
    Vote Rating
    0
      0  

    Default

    Is it possible to use a custom tag and then make a change in the class.xsl file to display it like the other four (Config Options, Properties, Methods, Events)? Or use the custom tag in an xsl:if statement that if it's used then it would use a different stylesheet for that particular method? My thought is it's not possible without changing the DocClass.java file to include new variables. Of course, I'm still a newbie to XML/XSL stuff.

    To get you up to speed:
    We are trying to incorporate ext-doc into ColdFusion as well, which we are able to do by just wrapping comment syntax around CF's comment syntax like so:

    Code:
     
    <!---
    /**
    * Turns a query into an XML document
    * @method queryToXML
    * @return {XML}
    */
    --->
    <cffunction name="queryToXML" returntype="xml" hint="Turns a query into an XML document" output="no" access="public">
    . . .
    The problem is we still need to have the class.xsl file to display Config Options, Properties, Methods, Events for our javascript pages but we want the ability to "hide" these from displaying on the ColdFusion docs and instead use a different layout altogether (by either the use of a "<xsl:if match="customTag/cfLayout>" that will work similar to ConfigOptions that hides/displays its template or make a call to use a different template - CFclass.xsl). How do I do it?

    1st Thought:

    Code:
     
    <!--Methods - CFLayout--> 
       <xsl:if test="customTags/cfLayout">
        <!-- Remote Methods -->
        <xsl:if test="remote"> 
         <a id="{className}-methods"> </a> 
         <h2>REMOTE Methods</h2> 
         <table cellspacing="0" class="member-table"> 
          <tbody> 
           <tr> 
            <th colspan="2" class="sig-header">REMOTE Method</th> 
            <th class="msource-header">Defined By</th> 
           </tr> 
           <xsl:if test="hasConstructor='true'"> 
            <xsl:call-template name="constructor"/> 
           </xsl:if> 
           <xsl:for-each select="methods"> 
            <xsl:variable name="inherited"> 
             <xsl:if test="/docClass/className!=className">inherited</xsl:if> 
            </xsl:variable> 
            <tr class="method-row expandable {$inherited}"> 
             <td class="micon"><a href="#expand" class="exi">&nbsp;</a></td> 
             <td class="sig"> 
              <a id="{className}-{name}"/> 
              <b><a href="source/{href}"><xsl:value-of select="name"/></a></b> 
              <xsl:call-template name="method-params"/>: 
              <xsl:choose> 
               <xsl:when test="returnType"><xsl:value-of select="returnType"/></xsl:when> 
               <xsl:otherwise>void</xsl:otherwise> 
              </xsl:choose> 
              <div class="mdesc"> 
               <xsl:call-template name="custom-tags"/> 
               <div class="short"> 
                <xsl:call-template name="check-if-static"/> 
                <xsl:value-of select="description/shortDescr"/> 
               </div> 
               <div class="long"> 
                <xsl:call-template name="check-if-static"/> 
                 <xsl:value-of select="description/longDescr" disable-output-escaping="yes"/> 
                <xsl:call-template name="method-params-details"/> 
               </div> 
              </div> 
             </td> 
             <xsl:call-template name="msource"> 
              <xsl:with-param name="inherited" select="$inherited='inherited'"/> 
             </xsl:call-template> 
            </tr> 
           </xsl:for-each> 
          </tbody> 
         </table>
        </xsl:if>
     
        <!-- Public Methods -->
        <xsl:if test="public"> 
        ...
        </xsl:if>
     
        <!-- Private Methods -->
        <xsl:if test="private"> 
        ...
        </xsl:if>
     
       </xsl:if>

  2. #252
    Sencha User
    Join Date
    Sep 2009
    Posts
    5
    Vote Rating
    0
      0  

    Default

    It's good idea to implement tag @throws. When i add this tag to code, in statistics this tag exist. Can i use this tag in template class.xsl and how?

  3. #253
    Sencha User
    Join Date
    Jun 2008
    Posts
    42
    Vote Rating
    0
      0  

    Default

    Hi,All:
    when I used this,version 1.0.131.It has wrong code in my document. I used chinese code UTF-8 but It does not display correct.How to solve this ?Thx~

  4. #254
    Sencha User
    Join Date
    Sep 2009
    Posts
    5
    Vote Rating
    0
      0  

    Default

    try to set flag 'file.encoding'

    java -Dfile.encoding=UTF8 ...

  5. #255
    Sencha Premium Member
    Join Date
    Feb 2009
    Location
    Amsterdam, The Netherlands
    Posts
    245
    Vote Rating
    6
      0  

    Default

    Hi to all,
    Maybe I'm doing something very wrong, but I followed exactly the steps and whenever I click any class it stays loading forever. I checked the html's and it seems the paths are wrong (they include an extra output folder).

    So the tree shows everything correctly but it says "loading" forever and whenever I click a item in the tree, it opens the tab but nothing comes up...

    Any clues?

  6. #256
    Sencha User
    Join Date
    Sep 2009
    Posts
    5
    Vote Rating
    0
      0  

    Default

    You must run web help with web server (web site)

  7. #257
    Sencha Premium Member
    Join Date
    Feb 2009
    Location
    Amsterdam, The Netherlands
    Posts
    245
    Vote Rating
    6
      0  

    Default

    Why do I need to run this on a webserver to make it work? It should work locally...

  8. #258
    Sencha User
    Join Date
    Sep 2009
    Posts
    5
    Vote Rating
    0
      0  

    Default

    All request throw ajax and browser close direct access to local file throw ajax. You can config local server (for windows is IIS and for linux apatche) and make local site. If you want help localy work try to use titanium http://www.appcelerator.com/products/download/

  9. #259
    Sencha Premium Member
    Join Date
    Feb 2009
    Location
    Amsterdam, The Netherlands
    Posts
    245
    Vote Rating
    6
      0  

    Default

    You're correct. I dropped this in my tomcat and it works.

    Thanks a lot for your help

  10. #260
    Ext JS Premium Member wbutler's Avatar
    Join Date
    Aug 2010
    Posts
    12
    Vote Rating
    0
      0  

    Default Maven Plugin

    For those using Maven, I've created a simple plugin to run extdoc. You can use the plugin to generate the docs in a standalone fashion, or you can use it as an integrated report when building your Maven project site. Feel free to check it out:

    http://extdoc-maven-plugin.googlecode.com

    - Will

Page 26 of 28 FirstFirst ... 162425262728 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •