code: function findPagesMarkdown(
    directory = path.resolve(__dirname, '../../../src/pages'),
    pagesMarkdown = [],
  ) {
    const items = fs.readdirSync(directory);
  
    items.forEach(item => {
      const itemPath = path.resolve(directory, item);
  
      if (fs.statSync(itemPath).isDirectory()) {
        findPagesMarkdown(itemPath, pagesMarkdown);
        return;
      }
  
      if (!markdownRegex.test(item)) {
        return;
      }
  
      let pathname = itemPath
        .replace(new RegExp(`\\${path.sep}`, 'g'), '/')
        .replace(/^.*\/pages/, '')
        .replace('.md', '');
  
      // Remove the last pathname segment.
      pathname = pathname
        .split('/')
        .slice(0, 3)
        .join('/');
  
      pagesMarkdown.push({
        // Relative location in the path (URL) system.
        pathname,
        // Relative location in the file system.
        filename: itemPath,
      });
    });
  
    return pagesMarkdown;
  }
docs: Returns the markdowns of the documentation in a flat array. { pathname: String, filename: String, }