How to use gh-pages

Comprehensive gh-pages code examples:

How to use gh-pages.publish:

1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
  const depOptions = await this.getDepOptions(ciTokenVar, defaultDeployConfig, publish);
  return Site.getDepUrl(depOptions, defaultDeployConfig);
}

/**
 * Helper function for deploy(). Set the options needed to be used by ghpages.publish.
 */
async getDepOptions(ciTokenVar, defaultDeployConfig, publish) {
  const basePath = this.siteConfig.deploy.baseDir || this.outputPath;
  if (!fs.existsSync(basePath)) {