From aa6356eb643e9906d0b74cddad9cebddca9c5a29 Mon Sep 17 00:00:00 2001 From: Pavithra Eswaramoorthy Date: Mon, 24 Oct 2022 01:44:45 +0530 Subject: [PATCH 1/2] update welcome messge --- qhub/initialize.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qhub/initialize.py b/qhub/initialize.py index c94b14affe..4dc7738ca9 100644 --- a/qhub/initialize.py +++ b/qhub/initialize.py @@ -337,10 +337,10 @@ def render_config( f.write(default_password) os.chmod(default_password_filename, 0o700) - config["theme"]["jupyterhub"]["hub_title"] = f"QHub - { project_name }" + config["theme"]["jupyterhub"]["hub_title"] = f"Nebari - { project_name }" config["theme"]["jupyterhub"][ "welcome" - ] = f"""Welcome to { qhub_domain }. It is maintained by Quansight staff. The hub's configuration is stored in a github repository based on https://github.com/Quansight/qhub/. To provide feedback and report any technical problems, please use the github issue tracker.""" + ] = """Welcome! Learn about Nebari's features and configurations in the documentation. If you have any questions or feedback, reach the team on Nebari's support forums.""" if auth_provider == "github": config["security"]["authentication"] = AUTH_OAUTH_GITHUB.copy() @@ -365,14 +365,14 @@ def render_config( if cloud_provider == "do": config["theme"]["jupyterhub"][ "hub_subtitle" - ] = "Autoscaling Compute Environment on Digital Ocean" + ] = "Your open source data science platform, hosted on Digital Ocean." config["digital_ocean"] = DIGITAL_OCEAN.copy() set_kubernetes_version(config, kubernetes_version, cloud_provider) elif cloud_provider == "gcp": config["theme"]["jupyterhub"][ "hub_subtitle" - ] = "Autoscaling Compute Environment on Google Cloud Platform" + ] = "Your open source data science platform, hosted on Google Cloud Platform." config["google_cloud_platform"] = GOOGLE_PLATFORM.copy() set_kubernetes_version(config, kubernetes_version, cloud_provider) @@ -386,14 +386,14 @@ def render_config( elif cloud_provider == "azure": config["theme"]["jupyterhub"][ "hub_subtitle" - ] = "Autoscaling Compute Environment on Azure" + ] = "Your open source data science platform, hosted on Azure." config["azure"] = AZURE.copy() set_kubernetes_version(config, kubernetes_version, cloud_provider) elif cloud_provider == "aws": config["theme"]["jupyterhub"][ "hub_subtitle" - ] = "Autoscaling Compute Environment on Amazon Web Services" + ] = "Your open source data science platform, hosted on Amazon Web Services." config["amazon_web_services"] = AMAZON_WEB_SERVICES.copy() set_kubernetes_version(config, kubernetes_version, cloud_provider) if "AWS_DEFAULT_REGION" in os.environ: @@ -402,13 +402,13 @@ def render_config( elif cloud_provider == "existing": config["theme"]["jupyterhub"][ "hub_subtitle" - ] = "Autoscaling Compute Environment" + ] = "Your open source data science platform." config["existing"] = EXISTING.copy() elif cloud_provider == "local": config["theme"]["jupyterhub"][ "hub_subtitle" - ] = "Autoscaling Compute Environment" + ] = "Your open source data science platform." config["local"] = LOCAL.copy() config["profiles"] = DEFAULT_PROFILES.copy() From 19b9206624e8123ddca93f43ed8733c556bc5ed7 Mon Sep 17 00:00:00 2001 From: Pavithra Eswaramoorthy Date: Wed, 26 Oct 2022 14:30:41 +0200 Subject: [PATCH 2/2] remove qhub specifics from theme --- qhub/initialize.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/qhub/initialize.py b/qhub/initialize.py index 4dc7738ca9..a8a3fdc4b9 100644 --- a/qhub/initialize.py +++ b/qhub/initialize.py @@ -48,13 +48,6 @@ "hub_title": None, "hub_subtitle": None, "welcome": None, - "logo": "/hub/custom/images/jupyter_qhub_logo.svg", - "primary_color": "#4f4173", - "secondary_color": "#957da6", - "accent_color": "#32C574", - "text_color": "#111111", - "h1_color": "#652e8e", - "h2_color": "#652e8e", "version": f"v{__version__}", } },