// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

var JupyterLab = require('jupyterlab/lib/application').JupyterLab;

// ES6 Promise polyfill
require('es6-promise').polyfill();

require('font-awesome/css/font-awesome.min.css');
require('material-design-icons/iconfont/material-icons.css');
require('jupyterlab/lib/default-theme/index.css');

var lab = new JupyterLab();

lab.registerPlugins([
  // require('jupyterlab/lib/about/plugin').aboutExtension,
  // require('jupyterlab/lib/console/plugin').consoleExtension,
  // require('jupyterlab/lib/csvwidget/plugin').csvHandlerExtension,
  // require('jupyterlab/lib/editorwidget/plugin').editorHandlerExtension,
  // require('jupyterlab/lib/faq/plugin').faqExtension,
  // require('jupyterlab/lib/filebrowser/plugin').fileBrowserProvider,
  // require('jupyterlab/lib/help/plugin').helpHandlerExtension,
  // require('jupyterlab/lib/imagewidget/plugin').imageHandlerExtension,
  // require('jupyterlab/lib/inspector/plugin').inspectorExtension,
  // require('jupyterlab/lib/leafletwidget/plugin').mapHandlerExtension,
  // require('jupyterlab/lib/landing/plugin').landingExtension,
  require('jupyterlab/lib/main/plugin').mainExtension,
  require('jupyterlab/lib/mainmenu/plugin').mainMenuProvider,
  // require('jupyterlab/lib/markdownwidget/plugin').markdownHandlerExtension,
  // require('jupyterlab/lib/notebook/plugin').notebookHandlerExtension,
  // require('jupyterlab/lib/running/plugin').runningSessionsExtension,
  require('jupyterlab/lib/services/plugin').servicesProvider
  // require('jupyterlab/lib/shortcuts/plugin').shortcutsExtension,
  // require('jupyterlab/lib/terminal/plugin').terminalExtension,
  // require('phosphide/lib/extensions/commandpalette').commandPaletteExtension,
  // require('jupyter-js-widgets-labextension/lib/plugin').widgetManagerExtension,

  // require('jupyterlab/lib/clipboard/plugin').clipboardProvider,
  // require('jupyterlab/lib/docregistry/plugin').docRegistryProvider,
  // require('jupyterlab/lib/inspector/plugin').inspectorProvider,
  // require('jupyterlab/lib/notebook/plugin').notebookTrackerProvider,
  // require('jupyterlab/lib/rendermime/plugin').renderMimeProvider
]);

window.onload = function() { lab.start(); }

@@ -625,32 +625,100 @@
 ndlerExtension,%0A
+  require('jupyterlab/lib/docregistry/plugin').docRegistryProvider,%0A
   // require('ju
@@ -2018,79 +2018,8 @@
 er,%0A
-  // require('jupyterlab/lib/docregistry/plugin').docRegistryProvider,%0A
   //

Enable doc registry provider.