File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 22// The .NET Foundation licenses this file to you under the MIT license.
33
44/**
5- * This method will be called at the start of exports.transform in toc.html.js
5+ * This method will be called at the start of exports.transform in toc.html.js and toc.json.js
66 */
77exports . preTransform = function ( model ) {
88 return model ;
99}
1010
1111/**
12- * This method will be called at the end of exports.transform in toc.html.js
12+ * This method will be called at the end of exports.transform in toc.html.js and toc.json.js
1313 */
1414exports . postTransform = function ( model ) {
1515 return model ;
Original file line number Diff line number Diff line change 11// Licensed to the .NET Foundation under one or more agreements.
22// The .NET Foundation licenses this file to you under the MIT license.
3+ var extension = require ( './toc.extension.js' )
34
45exports . transform = function ( model ) {
56
7+ if ( extension && extension . preTransform ) {
8+ model = extension . preTransform ( model ) ;
9+ }
10+
611 if ( model . memberLayout === 'SeparatePages' ) {
712 model = transformMemberPage ( model ) ;
813 }
14+
15+ if ( extension && extension . postTransform ) {
16+ model = extension . postTransform ( model ) ;
17+ }
918
1019 for ( var key in model ) {
1120 if ( key [ 0 ] === '_' ) {
You can’t perform that action at this time.
0 commit comments