Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update theme welcome messages to use Nebari #1499

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions qhub/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="http://quansight.com">Quansight staff</a>. The hub's configuration is stored in a github repository based on <a href="https://github.com/Quansight/qhub/">https://github.com/Quansight/qhub/</a>. To provide feedback and report any technical problems, please use the <a href="https://github.com/Quansight/qhub/issues">github issue tracker</a>."""
] = """Welcome! Learn about Nebari's features and configurations in <a href="https://www.nebari.dev/docs">the documentation</a>. If you have any questions or feedback, reach the team on <a href="https://www.nebari.dev/docs/community#getting-support">Nebari's support forums</a>."""

if auth_provider == "github":
config["security"]["authentication"] = AUTH_OAUTH_GITHUB.copy()
Expand All @@ -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)

Expand All @@ -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:
Expand All @@ -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()
Expand Down