@@ -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
- //- adjustExamplePath transformer function.
56
+ //- adjustTsExamplePath4Dart transformer function.
57
57
mixin adjExPath(path )
58
- if adjustExamplePath
59
- | #{adjustExamplePath (path)}
58
+ if adjustTsExamplePath4Dart
59
+ | #{adjustTsExamplePath4Dart (path)}
60
60
else
61
61
| #{path}
62
62
@@ -65,8 +65,8 @@ mixin includeShared(filePath, region)
65
65
!= partial (newPath)
66
66
67
67
mixin makeExample(_filePath, region, _title, stylePatterns )
68
- - var filePath = adjustExamplePath ? adjustExamplePath (_filePath) : _filePath;
69
- - var title = adjustExampleTitle ? adjustExampleTitle (_title) : _title;
68
+ - var filePath = adjustTsExamplePath4Dart ? adjustTsExamplePath4Dart (_filePath) : _filePath;
69
+ - var title = adjustTsExampleTitle4Dart ? adjustTsExampleTitle4Dart (_title) : _title;
70
70
- var language = attributes .language || getExtn (filePath);
71
71
- var frag = getFrag (filePath, region);
72
72
- var defaultFormat = frag .split (' \n ' ).length > 2 ? " linenums" : " " ;
@@ -121,10 +121,10 @@ mixin makeExcerpt(projRootRelativePath, region, title, stylePatterns)
121
121
122
122
mixin makeTabs(filePaths, regions, tabNames, stylePatterns )
123
123
- filePaths = strSplit (filePaths);
124
- - if (adjustExamplePath ) filePaths = filePaths .map (adjustExamplePath );
124
+ - if (adjustTsExamplePath4Dart ) filePaths = filePaths .map (adjustTsExamplePath4Dart );
125
125
- regions = strSplit (regions, filePaths .length );
126
126
- tabNames = strSplit (tabNames, filePaths .length );
127
- - if (adjustExampleTitle ) tabNames = tabNames .map (adjustExampleTitle );
127
+ - if (adjustTsExampleTitle4Dart ) tabNames = tabNames .map (adjustTsExampleTitle4Dart );
128
128
129
129
code-tabs
130
130
each filePath,index in filePaths
0 commit comments