Skip to content

Commit

Permalink
move assets to plugin directory, add some links in hubs/templates , u…
Browse files Browse the repository at this point in the history
…pdate left sidecar label
  • Loading branch information
kreuzert committed Dec 19, 2024
1 parent 64e3156 commit 315e023
Show file tree
Hide file tree
Showing 18 changed files with 142 additions and 81 deletions.
10 changes: 10 additions & 0 deletions docs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,14 @@
/* Hide the logo in the header */
.md-header .md-logo {
display: none;
}

label.md-nav__link {
color: #023d6b !important;
font-size: 16px;
}

label.md-nav__title {
color: #023d6b !important;
font-size: 20px;
}
Binary file removed docs/hubs/plugins/__pycache__/hooks.cpython-311.pyc
Binary file not shown.
Binary file removed docs/hubs/plugins/__pycache__/hooks.cpython-312.pyc
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
26 changes: 13 additions & 13 deletions docs/hubs/plugins/data/cardinfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="nfdi-card-link">[:octicons-arrow-right-24: Service Details](details/gwdg_hpc.md)
[:material-lock: Login](https://jupyter-hpc.gwdg.de){.md-button .md-button--primary}</div>
image: assets/default-logo.png
image: plugins/assets/default-logo.png
icon: ":octicons-arrow-right-24:"
- title: Jupyter4NFDI
content: |
Expand All @@ -16,7 +16,7 @@
<div class="nfdi-card-link">[:octicons-arrow-right-24: Service Details](details/jupyter4nfdi.md)
[:material-lock: Login](https://hub.nfdi-jupyter.de){.md-button .md-button--primary}</div>
image: assets/default-logo.png
image: plugins/assets/default-logo.png
icon: ":octicons-arrow-right-24:"
- title: RWTH HPC JupyterHub
content: |
Expand All @@ -26,7 +26,7 @@
<div class="nfdi-card-link">[:octicons-arrow-right-24: Service Details](details/RWTH-NFDI-Jupyter-Service.md)
[:material-lock: Login](#){.md-button--disabled}</div>
image: assets/default-logo.png
image: plugins/assets/default-logo.png
icon: ":octicons-arrow-right-24:"
- title: Interactive Tools of European Galaxy Server
content: |
Expand All @@ -36,7 +36,7 @@
<div class="nfdi-card-link">[:octicons-arrow-right-24: Service Details](details/usegalaxy.eu.md)
[:material-lock-open-variant: Login](https://live.usegalaxy.eu){.md-button .md-button--primary}</div>
image: assets/usegalaxy.eu.png
image: plugins/assets/usegalaxy.eu.png
icon: ":octicons-arrow-right-24:"
- title: University of Münster JupyterHub
content: |
Expand All @@ -46,7 +46,7 @@
<div class="nfdi-card-link">[:octicons-arrow-right-24: Service Details](details/uni-muenster.md)
[:material-lock: Login](https://jupyterhub.uni-muenster.de){.md-button .md-button--primary}</div>
image: assets/default-logo.png
image: plugins/assets/default-logo.png
icon: ":octicons-arrow-right-24:"
- title: NFDI4Ing JupyterHub
content: |
Expand All @@ -56,7 +56,7 @@
<div class="nfdi-card-link">[:octicons-arrow-right-24: Service Details](details/nfdi4ing.md)
[:material-lock: Login](https://jupyter.nfdi4ing.de){.md-button .md-button--primary}</div>
image: assets/default-logo.png
image: plugins/assets/default-logo.png
icon: ":octicons-arrow-right-24:"
- title: GESIS Notebooks
content: |
Expand All @@ -66,7 +66,7 @@
<div class="nfdi-card-link">[:octicons-arrow-right-24: Service Details](details/GESIS-Notebooks.md)
[:material-lock-open-variant: Login](http://notebooks.gesis.org){.md-button .md-button--primary}</div>
image: assets/GESIS-Notebooks.png
image: plugins/assets/GESIS-Notebooks.png
icon: ":octicons-arrow-right-24:"
- title: HoreKa Jupyterhub
content: |
Expand All @@ -76,7 +76,7 @@
<div class="nfdi-card-link">[:octicons-arrow-right-24: Service Details](details/kit-horeka.md)
[:material-lock: Login](https://hk-jupyter.scc.kit.edu){.md-button .md-button--primary}</div>
image: assets/default-logo.png
image: plugins/assets/default-logo.png
icon: ":octicons-arrow-right-24:"
- title: Webbasiertes Data Science und Machine Learning mit Jupyter
content: |
Expand All @@ -86,7 +86,7 @@
<div class="nfdi-card-link">[:octicons-arrow-right-24: Service Details](details/uni-leipzig.md)
[:material-lock: Login](#){.md-button--disabled}</div>
image: assets/default-logo.png
image: plugins/assets/default-logo.png
icon: ":octicons-arrow-right-24:"
- title: PC² JupyterHub
content: |
Expand All @@ -96,7 +96,7 @@
<div class="nfdi-card-link">[:octicons-arrow-right-24: Service Details](details/pc2-upb.md)
[:material-lock: Login](#){.md-button--disabled}</div>
image: assets/default-logo.png
image: plugins/assets/default-logo.png
icon: ":octicons-arrow-right-24:"
- title: Jupyter-Cloud
content: |
Expand All @@ -106,7 +106,7 @@
<div class="nfdi-card-link">[:octicons-arrow-right-24: Service Details](details/gwdg.md)
[:material-lock: Login](https://jupyter-cloud.gwdg.de){.md-button .md-button--primary}</div>
image: assets/default-logo.png
image: plugins/assets/default-logo.png
icon: ":octicons-arrow-right-24:"
- title: MPCDF JupyterHub
content: |
Expand All @@ -116,7 +116,7 @@
<div class="nfdi-card-link">[:octicons-arrow-right-24: Service Details](details/mpcdf.md)
[:material-lock: Login](https://notebooks.mpcdf.mpg.de){.md-button .md-button--primary}</div>
image: assets/default-logo.png
image: plugins/assets/default-logo.png
icon: ":octicons-arrow-right-24:"
- title: Jupyter-JSC
content: |
Expand All @@ -126,5 +126,5 @@
<div class="nfdi-card-link">[:octicons-arrow-right-24: Service Details](details/jupyter-jsc.fz-juelich.de.md)
[:material-lock: Login](https://jupyter.jsc.fz-juelich.de){.md-button .md-button--primary}</div>
image: assets/jupyter-jsc.fz-juelich.de.png
image: plugins/assets/jupyter-jsc.fz-juelich.de.png
icon: ":octicons-arrow-right-24:"
4 changes: 2 additions & 2 deletions docs/hubs/plugins/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def generate_cards(*args, **kwargs):
d = yaml.safe_load(fh)
logo = d.get("logo", None)
if logo is None:
if os.path.exists("docs/hubs/assets/"+ file_name.split("/")[-1][:-4]+"png"):
if os.path.exists("docs/hubs/plugins/assets/"+ file_name.split("/")[-1][:-4]+"png"):
logo = file_name.split("/")[-1][:-4]+"png"
else:
logo = "default-logo.png"
Expand All @@ -43,5 +43,5 @@ def generate_cards(*args, **kwargs):
lock,
service_url,
button_attr))
outfile.write(" image: assets/%s\n" % logo)
outfile.write(" image: plugins/assets/%s\n" % logo)
outfile.write(" icon: \":octicons-arrow-right-24:\"\n")
10 changes: 5 additions & 5 deletions docs/hubs/stats.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Currently, **11** providers host **12** Jupyter services:

<figure markdown>
![Provider Map](assets/map_germany.svg){ width="450" }
![Provider Map](plugins/assets/map_germany.svg){ width="450" }
<figcaption>Map of Jupyter Providers in Germany</figcaption>
</figure>

Expand All @@ -23,18 +23,18 @@ The following NFDI consortia contribute to one or more of the collected services
::cards:: cols=2

- title: " "
image: assets/nfdi4ds_logo.png
image: plugins/assets/nfdi4ds_logo.png
- title: " "
image: assets/DataPLANT_logo.svg
image: plugins/assets/DataPLANT_logo.svg

::/cards::

::cards:: cols=2 class_name="smaller"

- title: " "
image: assets/nfdi4bioimage_logo.png
image: plugins/assets/nfdi4bioimage_logo.png
- title: " "
image: assets/nfdi4ing_logo.png
image: plugins/assets/nfdi4ing_logo.png

::/cards::

Expand Down
Loading

0 comments on commit 315e023

Please sign in to comment.