This repository was archived by the owner on Feb 15, 2024. It is now read-only.
forked from Quansight/qhub-jupyterhub-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding logo configuration along with simpler testing
- Loading branch information
Showing
9 changed files
with
44 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{% extends "templates/page.html" %} {% block stylesheet %} | ||
<link rel="stylesheet" href="{{ static_url(" custom/css/style.css ") }}" type="text/css" /> | ||
<link rel="stylesheet" href="{{ static_url(" css/style.min.css ") }}" type="text/css" /> {% endblock %} {# requires jupyerhub > 0.9.4 https://github.com/jupyterhub/jupyterhub/pull/2296 #} {% block logo %} | ||
<link rel="stylesheet" href="/hub/custom/css/style.css" type="text/css" /> | ||
<link rel="stylesheet" href="{{ static_url("css/style.min.css") }}" type="text/css" /> {% endblock %} {# requires jupyerhub > 0.9.4 https://github.com/jupyterhub/jupyterhub/pull/2296 #} {% block logo %} | ||
<span id="jupyterhub-logo" class="pull-left"> | ||
<a href="{{logo_url or base_url}}"><img src="{{static_url("custom/images/jupyter_qhub_logo.svg") }}" alt='JupyterHub' class='jpy-logo' title='Home'/></a> | ||
</span> {% endblock %} | ||
<a href="{{logo_url or base_url}}"><img src="{{ logo }}" alt='JupyterHub' class='jpy-logo' title='Home'/></a> | ||
</span> {% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
c.JupyterHub.authenticator_class = 'jupyterhub.auth.DummyAuthenticator' | ||
from jupyterhub.auth import DummyAuthenticator | ||
from jupyterhub.spawner import SimpleLocalProcessSpawner | ||
|
||
import tornado.web | ||
|
||
c.JupyterHub.authenticator_class = DummyAuthenticator | ||
c.DummyAuthenticator.password = 'test' | ||
c.JupyterHub.spawner_class = SimpleLocalProcessSpawner | ||
|
||
# since we accept any username for launching we cannot use the default pam spawner | ||
c.JupyterHub.spawner_class = 'jupyterhub.spawner.SimpleLocalProcessSpawner' | ||
# Link static files along with templates | ||
c.JupyterHub.extra_handlers = [ | ||
(r'/custom/(.*)', tornado.web.StaticFileHandler, {"path": "custom"}), | ||
] | ||
|
||
c.JupyterHub.logo_file = 'share/jupyterhub/static/custom/images/jupyter_qhub_logo_small.png' | ||
# we have to manually set the data file path to include custom assets... | ||
c.JupyterHub.data_files_path = './share/jupyterhub' | ||
c.JupyterHub.template_paths = [ | ||
'./templates', | ||
'./share/jupyterhub/templates/' | ||
] | ||
|
||
# QHUB will control these as ways to customize the template | ||
c.JupyterHub.template_vars = { | ||
'hub_title': 'This is QHub', | ||
'hub_subtitle': 'your scalable open source data science laboratory.', | ||
'welcome': 'have fun.', | ||
'logo': '/hub/custom/images/jupyter_qhub_logo.svg', | ||
} |