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

Fix --examples-base-url option.

Use it correctly when generating touch docs.
parent 203c1d34
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -467,7 +467,11 @@ task :touch2, [:mode] => :sass do |t, args|
  runner.add_options ["--output", OUT_DIR, "--config", "#{SDK_DIR}/touch/docs/config.json"]
  runner.add_debug if mode == "debug"
  runner.add_export_notice("touch/2-0") if mode == "export"
  runner.set_touch2_src if mode == "export"
  if mode == "export"
    runner.set_touch2_src
  else
    runner.add_options ["--examples-base-url", "touch/examples/"]
  end
  runner.add_seo if mode == "debug" || mode == "live"
  runner.add_google_analytics if mode == "live"
  runner.add_comments('comments-touch-2') if mode == "debug" || mode == "live"
+1 −1
Original line number Diff line number Diff line
@@ -278,7 +278,7 @@ module JsDuck
          @eg_iframe = canonical(path)
        end

        opts.on('--examples_base_url=URL',
        opts.on('--examples-base-url=URL',
          "Base URL for examples with relative URL-s.", " ") do |path|
          @examples_base_url = path
        end