docs: function encodeOutputWithPage(output, page) {
      var file = page.getFile();
      var book = output.getBook();
  
      var result = encodeOutput(output);
      result.page = encodePage(page, book.getSummary());
      result.file = encodeFile(file);
  
      return result;
  }