docVersions: function()

in themes/tfjs/helper/index.js [156:174]


    docVersions: function(path) {
      const hexoLocals = hexo.locals.toObject();
      if (isApiVisPage(path)) {
        return hexoLocals.data['api_vis/api_manifest'].versions;
      }
      if (isApiNodePage(path)) {
        return hexoLocals.data['api_node/api_manifest'].versions;
      }
      if (isApiReactNativePage(path)) {
        return hexoLocals.data['api_react_native/api_manifest'].versions;
      }
      if (isTflitePage(path)) {
        return hexoLocals.data['api_tflite/api_manifest'].versions;
      }
      if (isTaskApiPage(path)) {
        return hexoLocals.data['api_tasks/api_manifest'].versions;
      }
      return hexoLocals.data['api/api_manifest'].versions;
    },