code: async function getSiteData(pages) {
    config = config || (await asyncConfig());
    const nestedPages = await getNestedPages(config.srcDir);
    const site = {
      nestedPages,
      pages: pages.map(page => ({
        url: page.url,
        meta: page.meta,
        // choosing not to have `page.body` in here on purpose
      })),
    };
  
    return site;
  }
docs: Get the site data based on the pages
  @param {object} pages
  @returns {{pages}}