@@ -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.
5757mixin 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
109109mixin 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
0 commit comments