Skip to content
Snippets Groups Projects

Adding custom EOSC ui

Closed Jaromír Hradil requested to merge eosc-ui into master
8 files
+ 1123
64
Compare changes
  • Side-by-side
  • Inline

Files

@@ -131,6 +131,8 @@ singleuser:
singleuser-webdav-wrapper.sh:
mode: 0755
mountPath: /usr/local/bin/jupyterhub-singleuser-webdav-wrapper
#NotebookNotary.db_file=':memory:' is used due to issues
#notebook notary file was causing in ~/.jupyter in ownCloud mount
stringData: |-
#! /bin/sh
#
@@ -147,26 +149,42 @@ singleuser:
exec jupyterhub-singleuser \
--FileCheckpoints.checkpoint_dir='/home/jovyan/.notebookCheckpoints' \
--NotebookNotary.db_file=':memory:' \
--LabApp.custom_css=True \
"$@"
disable-labnews:
#Settings in overrides.json must be passed as stringData.
#Otherwise JupyterLab will not consider them
##Disables news Jupyter notifications
##Overrides default Help menu to include EOSC links
##Setting is reusing 'git:open-url' command from Jupyter Git
##extension to open link in browser tab, because 'help:open'
##command opens tab inside Lab and EOSC website does not
##allow itself to be open if embedded in another website
overrides-settings:
mode: 0644
mountPath: /opt/conda/share/jupyter/lab/settings/overrides.json
stringData: |-
{
"@jupyterlab/apputils-extension:notification": {
"checkForUpdates": "false",
"fetchNews": "false"
},
"@jupyterlab/application-extension:context-menu": {
"contextMenu": [
{
"command": "filebrowser:share-main",
"selector": ".jp-DirListing-item[data-isdir]",
"disabled": true
}
]
}
}
{% filter indent(10) %}
{{ overrides_file_content | to_json }}
{% endfilter %}
#Two files below are not included in /home/jovyan/.jupyter because
#that is ownCloud mount path. They are included in jupyter_server
#static path instead, because otherwise Jupyter is not considering
# custom CSS
eosc-css:
mode: 0644
mountPath: /opt/conda/lib/python3.11/site-packages/jupyter_server/static/custom/custom.css
binaryData: "{{ css_file_content | b64encode }}"
eosc-logo:
mode: 0644
mountPath: /opt/conda/lib/python3.11/site-packages/jupyter_server/static/custom/logo/eosc-ntb-logo.svg
binaryData: "{{ logo_file_content | b64encode }}"
hub:
services:
Loading