diff --git a/lib/jsduck/assets.rb b/lib/jsduck/assets.rb index 1f7229d5f7e3740cd7b86eea43ad3a193be497d6..f4c4bf13a31cb43e8094bf9c0efa53898e9786d5 100644 --- a/lib/jsduck/assets.rb +++ b/lib/jsduck/assets.rb @@ -35,13 +35,11 @@ module JsDuck end # Writes out the assets that can be written out separately: - # guides, videos, examples, images. + # guides, images. # # Welcome page and categories are written in JsDuck::IndexHtml def write @guides.write(@opts.output_dir+"/guides") - @videos.write(@opts.output_dir+"/videos") - @examples.write(@opts.output_dir+"/examples") @images.copy(@opts.output_dir+"/images") end diff --git a/lib/jsduck/examples.rb b/lib/jsduck/examples.rb index 19d7b5f2227afebf31c9d38058f68f7dfd024bf6..fca2c813f6e2f27481dccf0da8a9bee5eb44eebd 100644 --- a/lib/jsduck/examples.rb +++ b/lib/jsduck/examples.rb @@ -48,14 +48,6 @@ module JsDuck end end - # Writes examples JSON file to dir - def write(dir) - FileUtils.mkdir(dir) unless File.exists?(dir) - # Write the JSON to output dir, so it's available in released - # version of docs and people can use it with JSDuck by themselves. - JsonDuck.write_json(dir+"/examples.json", @groups) - end - # Extracts example icon URL from example hash def icon_url(example) @opts.examples_base_url + example["icon"] diff --git a/lib/jsduck/guides.rb b/lib/jsduck/guides.rb index c35005552f2ffeef5118d2d95467e26fb3d69648..97c40a359c987774c7644fc3d69fd5e7d26fcfae 100644 --- a/lib/jsduck/guides.rb +++ b/lib/jsduck/guides.rb @@ -31,9 +31,6 @@ module JsDuck def write(dir) FileUtils.mkdir(dir) unless File.exists?(dir) each_item {|guide| write_guide(guide, dir) } - # Write the JSON to output dir, so it's available in released - # version of docs and people can use it with JSDuck by themselves. - JsonDuck.write_json(dir+"/guides.json", @groups) end def write_guide(guide, dir) diff --git a/lib/jsduck/videos.rb b/lib/jsduck/videos.rb index 50ab6db99ee6d5cbc14043f294c1c006f0da049f..41b567397d37604c76bdd847204b4b17b6959b93 100644 --- a/lib/jsduck/videos.rb +++ b/lib/jsduck/videos.rb @@ -30,14 +30,6 @@ module JsDuck end end - # Writes videos JSON file to a dir - def write(dir) - FileUtils.mkdir(dir) unless File.exists?(dir) - # Write the JSON to output dir, so it's available in released - # version of docs and people can use it with JSDuck by themselves. - JsonDuck.write_json(dir+"/videos.json", @groups) - end - # Extracts video icon URL from video hash def icon_url(video) video["thumb"]