Skip to content
  1. Nov 23, 2011
    • Rene Saarsoo's avatar
      9df204d4
    • Rene Saarsoo's avatar
      Support explicit @links to static members. · 89ea5d1b
      Rene Saarsoo authored
      One can now use {@link #static-foo} to link to static member #foo
      in case there's instance member with the same name. This wasn't
      previously possible.
      89ea5d1b
    • Rene Saarsoo's avatar
      Refactor Class#get_members. · 76888540
      Rene Saarsoo authored
      Instead of adding two different sets of keys to one hash, build the
      hash just by member name.  Look member name up from hash and filter
      by type if needed.
      
      Doing things in this more correct way brought up some bugs in other
      places. Like {@link #foo-bar} being detected as link to member foo
      of type bar, which happened to work. Now we only detect correct types.
      
      Similarly the @inheritdoc happened to work because string interpolation
      handles both symbols and strings equally well. Now it needs to be
      converted to symbol explicitly.
      
      All-in-all we now have more correct implementation.
      76888540
    • Rene Saarsoo's avatar
      Turn off @link related warnings in SDK build for now. · 6f02f128
      Rene Saarsoo authored
      Also turn off -link_ambiguous for Touch2.
      6f02f128
    • Rene Saarsoo's avatar
      Print warning when @link is ambiguous. · 054b6449
      Rene Saarsoo authored
      Like when {@link #foo} refers to either #method-foo or #event-foo.
      
      Also add new warning type: link_ambiguous.
      054b6449
    • Rene Saarsoo's avatar
      Add link_private warning type. · 239f0dbe
      Rene Saarsoo authored
      -link now only hides warnings about links to non-existant items.
      
      -link_private hides warnings about links to private members.
      239f0dbe
  2. Nov 21, 2011
  3. Nov 19, 2011
  4. Nov 18, 2011
  5. Nov 17, 2011
  6. Nov 16, 2011
  7. Nov 15, 2011
  8. Nov 14, 2011
  9. Nov 13, 2011
    • Rene Saarsoo's avatar
      Extract IndexHtml class from TemplateDir class. · 9b991b1f
      Rene Saarsoo authored
      The TemplateDir is now only responsible for copying or linking
      the tempate directory.
      9b991b1f
    • Rene Saarsoo's avatar
      Extract AppData class from TemplateDir class. · bf1833a3
      Rene Saarsoo authored
      It takes care of the creation of data.js file.
      bf1833a3
    • Rene Saarsoo's avatar
      Refactor 3 exporters back into main App class. · a3cbccfd
      Rene Saarsoo authored
      Didn't quite work out this way. Instead now separating out the
      different tasks in output. For start the source code export is
      now fully done inside SourceWriter class, which got a write_all
      static method.
      
      The main chunk of the normal HTML output is done by TemplateDir
      class that at the moment does a bit too many things.
      a3cbccfd
    • Rene Saarsoo's avatar
      Large refactoring of JsDuck::App class. · 33bc2d40
      Rene Saarsoo authored
      Splitting the output routines into three classes:
      
      - StdoutExporter
      - JsonExporter
      - HtmlExporter
      
      Additionally creating ClassWriter class for outputting the .js or .json
      files. This one isn't pretty, but I have to share the output logic
      between JsonExporter and StdoutExporter.
      
      Another nastiness is the format_classes method which has to run BEFORE
      writing out classes JSON, but AFTER the source HTML files have been
      created - because of the parallel stuff. Brr...
      
      At least the App class now has less responsibilities, but further
      refactorings are needed.
      33bc2d40
    • Rene Saarsoo's avatar
      Simplify App#run by using Null Object pattern. · d88c15fe
      Rene Saarsoo authored
      Welcome, Guides, Videos, Examples and Categories now all have a
      static #create method to be used instead of #new for instantiation.
      
      The #create returns either the corresponding object instance or
      NullObject which behaves as if it were the needed object, but
      effectively does nothing.
      
      Categories.create is a bit different - it first uses one of two
      strategies for creating categories: FileCategories when filename
      present or AutoCategories when not, then feeding the resulting
      categories list to actual Categories object.
      d88c15fe
Loading