def generate_sitemap(basedir)
      sitemap_file = File.join(basedir, 'sitemap.xml')
      File.open(sitemap_file, 'w') do |file|
        file.write(sitemap_contents(basedir))
      end
    end
def generate_sitemap(basedir)
      sitemap_file = File.join(basedir, 'sitemap.xml')
      File.open(sitemap_file, 'w') do |file|
        file.write(sitemap_contents(basedir))
      end
    end
Generates a sitemap at +basedir+
 @param basedir [String] the location where the sitemap should be generated