1 // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.
3 var restApiCommon = require('./RestApi.common.js');
4 var extension = require('./RestApi.extension.js')
6 exports.transform = function (model) {
7 if (extension && extension.preTransform) {
8 model = extension.preTransform(model);
11 if (restApiCommon && restApiCommon.transform) {
12 model = restApiCommon.transform(model);
14 model._disableToc = model._disableToc || !model._tocPath || (model._navPath === model._tocPath);
16 if (extension && extension.postTransform) {
17 model = extension.postTransform(model);
23 exports.getOptions = function (model) {
24 return { "bookmarks": restApiCommon.getBookmarks(model) };