# File lib/asciidoctor/path_resolver.rb, line 214
  def join_path(segments, root = nil)
    if root
      "#{root}#{SLASH}#{segments * SLASH}"
    else
      segments * SLASH
    end
  end