function createExampleTabs(pageRoot, pages, isLocal) {
  const baseURL = isLocal ? '/' : '/blockly-samples/';

  let tabsString = ``;
  for (const page of pages) {
    tabsString += `
    <li>
      <a href="${baseURL}${pageRoot}/${page.link}">
        ${page.label}
      </a>
    </li>
    `;
  }

  return `
  <!-- PAGE TABS -->
  <ul id="tabs">
  ${tabsString}
  </ul>
  <!-- END PAGE TABS -->`;
}
Create the tabs for switching between pages in an example.
The pages to include are specified in the example's package.json.
Unlike plugins, examples may have as many tabs as they want.
@param {string} pageRoot The directory of the example that is currently
    being prepared.
@param {Array<Object>} pages The list of pages to make tabs for.
@param {boolean} isLocal True if building for a local test. False if
    building for gh-pages.
@returns {string} The HTML for the page tabs, as a string.