docs: def write_out(self, output):
          """Banana banana
          """
          if not output:
              return
  
          ext = self.extensions.get(self.tree.root.extension_name)
  
          self.tree.write_out(output)
  
          self.write_extra_assets(output)
          ext.formatter.copy_assets(os.path.join(output, 'html', 'assets'))
  
          # Just in case the sitemap root isn't named index
          ext_folder = ext.formatter.get_output_folder(self.tree.root)
          ref, _ = self.tree.root.link.get_link(self.app.link_resolver)
          index_path = os.path.join(ext_folder, ref)
  
          default_index_path = os.path.join(output, 'html', 'index.html')
  
          if not os.path.exists(default_index_path):
              with open(default_index_path, 'w', encoding='utf8') as _:
                  _.write('<meta http-equiv="refresh" content="0; url=%s"/>' %
                          index_path)
  
          self.written_out_signal(self)