docs: def write_out_page(self, output, page):
          """
          Banana banana
          """
          subpages = OrderedDict({})
          all_pages = self.project.tree.get_pages()
          subpage_names = self.get_subpages_sorted(all_pages, page)
          for pagename in subpage_names:
              proj = self.project.subprojects.get(pagename)
  
              if not proj:
                  cpage = all_pages[pagename]
                  sub_formatter = self.project.extensions[
                      cpage.extension_name].formatter
              else:
                  cpage = proj.tree.root
                  sub_formatter = proj.extensions[cpage.extension_name].formatter
  
              subpage_link, _ = cpage.link.get_link(self.app.link_resolver)
              prefix = sub_formatter.get_output_folder(cpage)
              if prefix:
                  subpage_link = '%s/%s' % (prefix, subpage_link)
              subpages[subpage_link] = cpage
  
          html_subpages = self.formatter.format_subpages(page, subpages)
  
          js_dir = os.path.join(output, 'html', 'assets', 'js')
          if not os.path.exists(js_dir):
              os.makedirs(js_dir)
          sm_path = os.path.join(js_dir, 'sitemap.js')
          self.write_out_sitemap(sm_path)
  
          self.formatter.write_out(page, html_subpages, output)