浏览代码

Move most federated example server data out of the static directory.

Jason Grout 4 年之前
父节点
当前提交
a8a93f75ee
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 1 0
      examples/federated/.gitignore
  2. 3 3
      examples/federated/main.py

+ 1 - 0
examples/federated/.gitignore

@@ -2,4 +2,5 @@ stats.json
 node_modules
 core_package/build
 core_package/static
+data
 labextensions/

+ 3 - 3
examples/federated/main.py

@@ -28,14 +28,14 @@ class ExamplePrebuiltApp(LabServerApp):
     name = 'lab'
     load_other_extensions = False
     app_name = 'JupyterLab Example App with Prebuilt Extensions'
-    app_settings_dir = os.path.join(HERE, 'core_package', 'static', 'application_settings')
+    app_settings_dir = os.path.join(HERE, 'data', 'application_settings')
     app_version = version
     schemas_dir = os.path.join(HERE, 'core_package', 'static', 'schemas')
     static_dir = os.path.join(HERE, 'core_package', 'static')
     templates_dir = os.path.join(HERE, 'templates')
     themes_dir = os.path.join(HERE, 'core_package', 'static', 'themes')
-    user_settings_dir = os.path.join(HERE, 'core_package', 'static', 'user_settings')
-    workspaces_dir = os.path.join(HERE, 'core_package', 'static', 'workspaces')
+    user_settings_dir = os.path.join(HERE, 'data', 'user_settings')
+    workspaces_dir = os.path.join(HERE, 'data', 'workspaces')
 
     # Set the location for prebuilt extensions, overriding the default
     # of looking in each of the Jupyter data paths.