Skip to content

Commit

Permalink
Merge pull request #52 from nebari-dev/more-misc-fixes
Browse files Browse the repository at this point in the history
Disable JupyterLab and move theme config to module
  • Loading branch information
aktech authored Jan 8, 2024
2 parents 7c666aa + 22b8fbb commit 6c29ff7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
10 changes: 5 additions & 5 deletions jhub_apps/spawner/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ def values(cls):
display_name="Gradio",
logo="https://www.gradio.app/_app/immutable/assets/gradio.8a5e8876.svg",
),
FrameworkConf(
name=Framework.jupyterlab.value,
display_name="JupyterLab",
logo="https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/Jupyter_logo.svg/1200px-Jupyter_logo.svg.png",
),
# FrameworkConf(
# name=Framework.jupyterlab.value,
# display_name="JupyterLab",
# logo="https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/Jupyter_logo.svg/1200px-Jupyter_logo.svg.png",
# ),
FrameworkConf(
name=Framework.custom.value,
display_name="Custom Command",
Expand Down
17 changes: 17 additions & 0 deletions jhub_apps/themes/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
LOGO = "/services/japps/static/img/Nebari-Logo-Horizontal-Lockup-White-text.svg"

DEFAULT_THEME = {
"logo": LOGO,
"primary_color": "#C316E9",
"primary_color_dark": "#79158a",
"secondary_color": "#18817A",
"secondary_color_dark": "#12635E",
"accent_color": "#eda61d",
"accent_color_dark": "#a16d14",
"text_color": "#1c1d26",
"h1_color": "#0f1015",
"h2_color": "#0f1015",
"navbar_text_color": "#ffffff",
"navbar_hover_color": "#20b1a8",
"navbar_color": "#1c1d26",
}
16 changes: 2 additions & 14 deletions jupyterhub_config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from jupyterhub.spawner import SimpleLocalProcessSpawner

from jhub_apps import theme_template_paths
from jhub_apps import theme_template_paths, themes
from jhub_apps.configuration import install_jhub_apps

c = get_config() # noqa
Expand Down Expand Up @@ -51,17 +51,5 @@ def service_for_jhub_apps(name, url):
"hub_title": "Welcome to Nebari",
"hub_subtitle": "your open source data science platform",
"welcome": "Running in dev mode",
"logo": "/services/japps/static/img/Nebari-Logo-Horizontal-Lockup-White-text.svg",
"primary_color": "#C316E9",
"primary_color_dark": "#79158a",
"secondary_color": "#18817A",
"secondary_color_dark": "#12635E",
"accent_color": "#eda61d",
"accent_color_dark": "#a16d14",
"text_color": "#1c1d26",
"h1_color": "#0f1015",
"h2_color": "#0f1015",
"navbar_text_color": "#ffffff",
"navbar_hover_color": "#20b1a8",
"navbar_color": "#1c1d26",
**themes.DEFAULT_THEME
}

0 comments on commit 6c29ff7

Please sign in to comment.