Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

19 rindas
697 B

  1. // Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.
  2. var common = require('./common.js');
  3. var extension = require('./conceptual.extension.js')
  4. exports.transform = function (model) {
  5. if (extension && extension.preTransform) {
  6. model = extension.preTransform(model);
  7. }
  8. model._disableToc = model._disableToc || !model._tocPath || (model._navPath === model._tocPath);
  9. model.docurl = model.docurl || common.getImproveTheDocHref(model, model._gitContribute, model._gitUrlPattern);
  10. if (extension && extension.postTransform) {
  11. model = extension.postTransform(model);
  12. }
  13. return model;
  14. }