Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit a0b5efa

Browse files
committed
post-review updates
1 parent 8f8fa09 commit a0b5efa

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

public/_includes/_util-fns.jade

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ mixin ifDocsFor(langPattern)
5353
block
5454

5555
//- Use to map inlined (prose) TS paths into, say, Dart paths via the
56-
//- adjustTsExamplePath4Dart transformer function.
56+
//- adjustTsExamplePathForDart transformer function.
5757
mixin adjExPath(path)
58-
if adjustTsExamplePath4Dart
59-
| #{adjustTsExamplePath4Dart(path)}
58+
if adjustTsExamplePathForDart
59+
| #{adjustTsExamplePathForDart(path)}
6060
else
6161
| #{path}
6262

@@ -108,10 +108,10 @@ mixin makeExcerpt(_filePath, _region, _title, stylePatterns)
108108

109109
mixin makeTabs(filePaths, regions, tabNames, stylePatterns)
110110
- filePaths = strSplit(filePaths);
111-
- if (adjustTsExamplePath4Dart) filePaths = filePaths.map(adjustTsExamplePath4Dart);
111+
- if (adjustTsExamplePathForDart) filePaths = filePaths.map(adjustTsExamplePathForDart);
112112
- regions = strSplit(regions, filePaths.length);
113113
- tabNames = strSplit(tabNames, filePaths.length);
114-
- if (adjustTsExampleTitle4Dart) tabNames = tabNames.map(adjustTsExampleTitle4Dart);
114+
- if (adjustTsExampleTitleForDart) tabNames = tabNames.map(adjustTsExampleTitleForDart);
115115

116116
code-tabs
117117
each filePath,index in filePaths
@@ -209,7 +209,7 @@ script.
209209
//- then the project-relative path is used, adjusted to remove numeric
210210
//- file version qualifiers; e.g. 'styles.1.css' becomes 'styles.css'.
211211
- var adjExampleProjPathAndTitle = function(ex/*:{filePath,title}*/) {
212-
- // E.g. of a proj relative path is 'app/main.ts'
212+
- // E.g. of a project relative path is 'app/main.ts'
213213
- if (ex.title === null || ex.title === undefined) {
214214
- // Title is not given so take it to be ex.filePath.
215215
- // Is title like styles.1.css? Then drop the '.1' qualifier:
@@ -227,8 +227,8 @@ script.
227227
- // Not a doc folder relative path? Assume that it is app project relative.
228228
- if(isProjRelDir(ex.filePath)) adjExampleProjPathAndTitle(ex);
229229
- // Adjust doc folder relative paths if adjustment functions exist.
230-
- if(adjustTsExamplePath4Dart) ex.filePath = adjustTsExamplePath4Dart(ex.filePath);
231-
- if(adjustTsExampleTitle4Dart) ex.title = adjustTsExampleTitle4Dart(ex.title);
230+
- if(adjustTsExamplePathForDart) ex.filePath = adjustTsExamplePathForDart(ex.filePath);
231+
- if(adjustTsExampleTitleForDart) ex.title = adjustTsExampleTitleForDart(ex.title);
232232
- return ex;
233233
- };
234234

public/docs/dart/latest/_util-fns.jade

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mixin liveExampleLink2(linkText, exampleUrlPartName)
3232
- var href = 'http://github.com/angular-examples/' + ex;
3333
span #[+liveExampleLink(linkText, ex)] (#[a(href='#{href}' target="_blank") #{srcText}])
3434

35-
- var adjustTsExamplePath4Dart = function(_path) {
35+
- var adjustTsExamplePathForDart = function(_path) {
3636
- if(!_path) return _path;
3737
- var path = _path.trim();
3838
- var folder = getFolder(path);
@@ -52,15 +52,15 @@ mixin liveExampleLink2(linkText, exampleUrlPartName)
5252
- return (folder ? folder + '/' : '') + baseNameNoExt + (extn ? '.' + extn : '');
5353
- };
5454

55-
- var adjustTsExampleTitle4Dart = function(_title) {
56-
- if(!_title || !adjustTsExamplePath4Dart) return _title;
55+
- var adjustTsExampleTitleForDart = function(_title) {
56+
- if(!_title || !adjustTsExamplePathForDart) return _title;
5757
- var title = _title.trim();
5858
- // Assume title is a path if it ends with an extension like '.foo',
5959
- // optionally followed by some comment in parentheses.
6060
- var matches = title.match(/(.*\.\w+)($|\s*\([\w ]+\)$)/);
6161
- if(matches && matches.length == 3) {
6262
- // e.g. matches == ['abc.ts (excerpt)', 'abc.ts', ' (excerpt)']
63-
- var path = adjustTsExamplePath4Dart(matches[1]);
63+
- var path = adjustTsExamplePathForDart(matches[1]);
6464
- title = path + matches[2];
6565
- }
6666
- return title;

0 commit comments

Comments
 (0)