Commit a9288788 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Merge pull request #286 from scottrobertwhittaker/fixImagePaths

Generate full paths for images in guides
parents dfaf6057 4bc20fcf
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -59,8 +59,7 @@ module JsDuck

      begin
        @formatter.doc_context = {:filename => guide_file, :linenr => 0}
        name = File.basename(guide["url"])
        @formatter.img_path = "guides/#{name}"
        @formatter.img_path = "guides/#{guide["name"]}"

        return add_toc(guide, @formatter.format(Util::IO.read(guide_file)))
      rescue