code: function encodePagesPath(pages) {
    pages.forEach((page) => {
      if (!page.path) {
        return;
      }
      page.path = encodePagePath(page.path);
    });
    return pages;
  }
docs: Encode specified `pages` with
  [encodeURIComponent]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent}.
  
  @param {Page[]} pages
  @returns {string}
  @memberof pathUtils