@@ -53,10 +53,10 @@ mixin ifDocsFor(langPattern)
53
53
block
54
54
55
55
//- Use to map inlined (prose) TS paths into, say, Dart paths via the
56
- //- adjustTsExamplePath4Dart transformer function.
56
+ //- adjustTsExamplePathForDart transformer function.
57
57
mixin adjExPath(path )
58
- if adjustTsExamplePath4Dart
59
- | #{adjustTsExamplePath4Dart (path)}
58
+ if adjustTsExamplePathForDart
59
+ | #{adjustTsExamplePathForDart (path)}
60
60
else
61
61
| #{path}
62
62
@@ -108,10 +108,10 @@ mixin makeExcerpt(_filePath, _region, _title, stylePatterns)
108
108
109
109
mixin makeTabs(filePaths, regions, tabNames, stylePatterns )
110
110
- filePaths = strSplit (filePaths);
111
- - if (adjustTsExamplePath4Dart ) filePaths = filePaths .map (adjustTsExamplePath4Dart );
111
+ - if (adjustTsExamplePathForDart ) filePaths = filePaths .map (adjustTsExamplePathForDart );
112
112
- regions = strSplit (regions, filePaths .length );
113
113
- tabNames = strSplit (tabNames, filePaths .length );
114
- - if (adjustTsExampleTitle4Dart ) tabNames = tabNames .map (adjustTsExampleTitle4Dart );
114
+ - if (adjustTsExampleTitleForDart ) tabNames = tabNames .map (adjustTsExampleTitleForDart );
115
115
116
116
code-tabs
117
117
each filePath,index in filePaths
@@ -209,7 +209,7 @@ script.
209
209
//- then the project-relative path is used, adjusted to remove numeric
210
210
//- file version qualifiers; e.g. 'styles.1.css' becomes 'styles.css'.
211
211
- 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'
213
213
- if (ex .title === null || ex .title === undefined ) {
214
214
- // Title is not given so take it to be ex.filePath.
215
215
- // Is title like styles.1.css? Then drop the '.1' qualifier:
@@ -227,8 +227,8 @@ script.
227
227
- // Not a doc folder relative path? Assume that it is app project relative.
228
228
- if (isProjRelDir (ex .filePath )) adjExampleProjPathAndTitle (ex);
229
229
- // 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 );
232
232
- return ex;
233
233
- };
234
234
0 commit comments