@@ -48,10 +48,10 @@ mixin ifDocsFor(langPattern)
48
48
block
49
49
50
50
//- Use to map inlined (prose) TS paths into, say, Dart paths via the
51
- //- adjustExamplePath transformer function.
51
+ //- adjustTsExamplePath4Dart transformer function.
52
52
mixin adjExPath(path )
53
- if adjustExamplePath
54
- | #{adjustExamplePath (path)}
53
+ if adjustTsExamplePath4Dart
54
+ | #{adjustTsExamplePath4Dart (path)}
55
55
else
56
56
| #{path}
57
57
@@ -60,8 +60,8 @@ mixin includeShared(filePath, region)
60
60
!= partial (newPath)
61
61
62
62
mixin makeExample(_filePath, region, _title, stylePatterns )
63
- - var filePath = adjustExamplePath ? adjustExamplePath (_filePath) : _filePath;
64
- - var title = adjustExampleTitle ? adjustExampleTitle (_title) : _title;
63
+ - var filePath = adjustTsExamplePath4Dart ? adjustTsExamplePath4Dart (_filePath) : _filePath;
64
+ - var title = adjustTsExampleTitle4Dart ? adjustTsExampleTitle4Dart (_title) : _title;
65
65
- var language = attributes .language || getExtn (filePath);
66
66
- var frag = getFrag (filePath, region);
67
67
- var defaultFormat = frag .split (' \n ' ).length > 2 ? " linenums" : " " ;
@@ -116,10 +116,10 @@ mixin makeExcerpt(projRootRelativePath, region, title, stylePatterns)
116
116
117
117
mixin makeTabs(filePaths, regions, tabNames, stylePatterns )
118
118
- filePaths = strSplit (filePaths);
119
- - if (adjustExamplePath ) filePaths = filePaths .map (adjustExamplePath );
119
+ - if (adjustTsExamplePath4Dart ) filePaths = filePaths .map (adjustTsExamplePath4Dart );
120
120
- regions = strSplit (regions, filePaths .length );
121
121
- tabNames = strSplit (tabNames, filePaths .length );
122
- - if (adjustExampleTitle ) tabNames = tabNames .map (adjustExampleTitle );
122
+ - if (adjustTsExampleTitle4Dart ) tabNames = tabNames .map (adjustTsExampleTitle4Dart );
123
123
124
124
code-tabs
125
125
each filePath,index in filePaths
0 commit comments