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.
 
 
 

25 rindas
798 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 restApiCommon = require('./RestApi.common.js');
  3. var extension = require('./RestApi.extension.js')
  4. exports.transform = function (model) {
  5. if (extension && extension.preTransform) {
  6. model = extension.preTransform(model);
  7. }
  8. if (restApiCommon && restApiCommon.transform) {
  9. model = restApiCommon.transform(model);
  10. }
  11. model._disableToc = model._disableToc || !model._tocPath || (model._navPath === model._tocPath);
  12. if (extension && extension.postTransform) {
  13. model = extension.postTransform(model);
  14. }
  15. return model;
  16. }
  17. exports.getOptions = function (model) {
  18. return { "bookmarks": restApiCommon.getBookmarks(model) };
  19. }