mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 08:17:53 +01:00
19 lines
697 B
JavaScript
19 lines
697 B
JavaScript
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
var common = require('./common.js');
|
|
var extension = require('./conceptual.extension.js')
|
|
|
|
exports.transform = function (model) {
|
|
if (extension && extension.preTransform) {
|
|
model = extension.preTransform(model);
|
|
}
|
|
|
|
model._disableToc = model._disableToc || !model._tocPath || (model._navPath === model._tocPath);
|
|
model.docurl = model.docurl || common.getImproveTheDocHref(model, model._gitContribute, model._gitUrlPattern);
|
|
|
|
if (extension && extension.postTransform) {
|
|
model = extension.postTransform(model);
|
|
}
|
|
|
|
return model;
|
|
} |