isAWSURL: function()

in gulpfile.js [219:251]


  isAWSURL: function (link, options) {
    // AWS blog
    if (/https?:\/\/aws.amazon.com.*/.test(link)) {
      return options.fn(this);
    }

    // Docs site
    if (/https?:\/\/docs.opendata.aws.*/.test(link)) {
      return options.fn(this);
    }

    // AWS GitHub repos
    if (/https?:\/\/github.com\/(awslabs|aws-samples)\/.*/.test(link)) {
      return options.fn(this);
    }

    // AWS GitHub repos viewed through NBViewer
    if (/https?:\/\/nbviewer.jupyter.org\/github\/(awslabs|aws-samples)\/.*/.test(link)) {
      return options.fn(this);
    }
    
    // go.aws shortener
    if (/https?:\/\/go.aws.*/.test(link)) {
      return options.fn(this);
    }

    // AWS YouTube videos
    if (/https?:\/\/www.youtube.com\/watch\?v=(.*)&list=RDCMUCd6MoB9NC6uYN2grvUNT-Zg/.test(link)) {
      return options.fn(this);
    }

    return options.inverse(this);
  },