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

Add UToronto to list of running hubs #413

Merged
merged 3 commits into from
May 17, 2021
Merged
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
13 changes: 9 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@

# Grab the latest list of clusters defined in pilot-hubs/
clusters = Path("../config/hubs").glob("*")
hub_list = []
# Add list of repos managed outside pilot-hubs
hub_list = [{
'name': 'University of Toronto',
'domain': 'jupyter.utoronto.ca',
'id': 'utoronto',
'template': 'base-hub ([deployment repo](https://github.com/utoronto-2i2c/jupyterhub-deploy/))'
}]
for cluster_info in clusters:
if "schema" in cluster_info.name:
continue
Expand All @@ -89,13 +95,12 @@

hub_list.append({
'name': hub_config['homepage']['templateVars']['org']['name'],
'domain': f"[{hub['domain']}](https://{hub['domain']})",
'domain': f"[{hub['domain']}](https://{hub['domain']})",
"id": hub['name'],
"template": hub['template'],
})
df = pd.DataFrame(hub_list)
path_tmp = Path("tmp")
path_tmp.mkdir(exist_ok=True)
path_table = path_tmp / "hub-table.csv"
if not path_table.exists():
df.to_csv(path_table, index=None)
df.to_csv(path_table, index=None)