Commit 5dbcb4b8 authored by limscoder's avatar limscoder
Browse files

Don't show DocTests tag unless --doctests command line toggle is present.

parent 9473067c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ module JsDuck
          :examples => @assets.examples.to_array,
          :search => SearchData.new.create(@relations.classes, @assets),
          :stats => @opts.stats ? Stats.new.create(@relations.classes) : [],
          :doctests => @relations.classes.collect {|cls| cls[:name]},
          :doctests => @opts.doctests ? @relations.classes.collect {|cls| cls[:name]} : [],
          :signatures => MetaTagRegistry.instance.signatures,
          :localStorageDb => @opts.local_storage_db,
          :showPrintButton => @opts.seo,
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ Ext.define('Docs.controller.DocTests', {
    },

    /**
     * True if welcome page is available.
     * True if DocTests page is available.
     * @return {Boolean}
     */
    isActive: function() {