def sourcekitten_output(config)
      installation_root = Pathname(Dir.mktmpdir(['jazzy', podspec.name]))
      installation_root.rmtree if installation_root.exist?
      Pod::Config.instance.with_changes(installation_root: installation_root,
                                        verbose: false) do
        sandbox = Pod::Sandbox.new(Pod::Config.instance.sandbox_root)
        installer = Pod::Installer.new(sandbox, podfile)
        installer.install!
        stdout = Dir.chdir(sandbox.root) do
          targets = installer.pod_targets
                             .select { |pt| pt.pod_name == podspec.root.name }
                             .map(&:label)

          targets.map do |t|
            args = %W[doc --module-name #{podspec.module_name} -- -target #{t}]
            swift_version = compiler_swift_version(config.swift_version)
            args << "SWIFT_VERSION=#{swift_version}"
            SourceKitten.run_sourcekitten(args)
          end
        end
        stdout.reduce([]) { |a, s| a + JSON.parse(s) }.to_json
      end
    end
def sourcekitten_output(config)
      installation_root = Pathname(Dir.mktmpdir(['jazzy', podspec.name]))
      installation_root.rmtree if installation_root.exist?
      Pod::Config.instance.with_changes(installation_root: installation_root,
                                        verbose: false) do
        sandbox = Pod::Sandbox.new(Pod::Config.instance.sandbox_root)
        installer = Pod::Installer.new(sandbox, podfile)
        installer.install!
        stdout = Dir.chdir(sandbox.root) do
          targets = installer.pod_targets
                             .select { |pt| pt.pod_name == podspec.root.name }
                             .map(&:label)

          targets.map do |t|
            args = %W[doc --module-name #{podspec.module_name} -- -target #{t}]
            swift_version = compiler_swift_version(config.swift_version)
            args << "SWIFT_VERSION=#{swift_version}"
            SourceKitten.run_sourcekitten(args)
          end
        end
        stdout.reduce([]) { |a, s| a + JSON.parse(s) }.to_json
      end
    end
Build documentation from the given options
 @param [Config] options