Skip to content
  1. Nov 15, 2011
    • Rene Saarsoo's avatar
      Fix toolbar and button backrounds for Opera. · 4fcfbc95
      Rene Saarsoo authored
      Instead of generating the background images with `secha slice`
      just disabled them and defaulting to background color.
      
      Looks much better now.
      
      It should also work for IE, but haven't tested.
      4fcfbc95
  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
    • Nick Poulden's avatar
    • Nick Poulden's avatar
      Defer hover menu show by 200ms · 68e16e73
      Nick Poulden authored
      When you brush over the hover menu with the mouse on your way somewhere else it can be annoying that the hover menu shows.
      68e16e73
    • Nick Poulden's avatar
      Small styling tweaks · 1a1250b8
      Nick Poulden authored
      1a1250b8
    • Rene Saarsoo's avatar
      Let private members hide public members of parent class. · 807060c2
      Rene Saarsoo authored
      For example:
      
          /** @class Parent */
            /** @method foo */
      
          /** @class Child @extends Parent */
            /** @method foo @private */
      
      Previously this resulted in Child class docs having method foo from
      Parent, as if the private foo in Child didn't exist at all.  This
      behavior was quite far from obvious.
      
      Now the Child class docs will have no foo method at all - the parent
      class method gets shadowed with @private foo in subclass.  This should
      be more like what the documentation author intended.
      
      As a bonus we now have better error messages for cases where {@link}
      refers to a private member, and @inheritdoc can be used to inherit
      docs from private members.
      807060c2
    • Rene Saarsoo's avatar
      Enable comments only when CORS supported. · 80ac93b8
      Rene Saarsoo authored
      Previously it was only checked if IE >= 8, but now we do proper
      feature-detection. This also disables comments in Opera, so Docs
      app no more crashes it.
      
      Also we now hide the comment controls completely when comments
      are disabled. Previously the view-comments buttons were still there
      when comments were disabled.
      80ac93b8
Loading