Skip to content
  1. Nov 15, 2011
  2. Nov 14, 2011
  3. 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
  4. Nov 11, 2011
  5. Nov 10, 2011
  6. Nov 09, 2011
  7. Nov 07, 2011
  8. Nov 04, 2011
Loading