From f149bd1e91e749a77e8ee147fdb3881584ae6851 Mon Sep 17 00:00:00 2001 From: Nick Tomlin Date: Fri, 29 Apr 2016 12:08:15 -0500 Subject: [PATCH] fix(docs): Change extension for docs links to .ts (#3187) closes #3170 --- website/docgen/processors/add-links.js | 2 +- website/docgen/spec/add-links-spec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docgen/processors/add-links.js b/website/docgen/processors/add-links.js index cb269d0c6..6eece5f74 100644 --- a/website/docgen/processors/add-links.js +++ b/website/docgen/processors/add-links.js @@ -21,7 +21,7 @@ var addLinkToSourceCode = function(doc) { return; } var template = _.template('https://github.com/angular/protractor/blob/' + - '<%= linksHash %>/lib/<%= fileName %>.js'); + '<%= linksHash %>/lib/<%= fileName %>.ts'); doc.sourceLink = template({ linksHash: linksHash, diff --git a/website/docgen/spec/add-links-spec.js b/website/docgen/spec/add-links-spec.js index 918fcea5c..410953df5 100644 --- a/website/docgen/spec/add-links-spec.js +++ b/website/docgen/spec/add-links-spec.js @@ -22,7 +22,7 @@ describe('add-links', function() { addLinks([doc]); expect(doc.sourceLink).toBe('https://github.com/angular/protractor/' + 'blob/' + require('../../../package.json').version + '/lib/' + - 'protractor.js'); + 'protractor.ts'); }); it('should add links to types', function() { @@ -255,7 +255,7 @@ describe('add-links', function() { toBe('A promise located {@code Web Elements}.'); }); - it('should remove extraneous chatacters from @link links', function() { + it('should remove extraneous characters from @link links', function() { // Given a doc with a @link annotation. var docs = [ {