Commit dea5d8fc authored by Olivier Benz's avatar Olivier Benz
Browse files

Include custom font

- Custom font: MesloLGS NF
parent f9732e3b
Pipeline #7869 passed with stages
in 74 minutes and 53 seconds
@font-face {
font-family: 'MesloLGS NF';
src: url('../fonts/MesloLGS-NF-Regular.woff2') format('woff2'),
url('../fonts/MesloLGS-NF-Regular.woff') format('woff'),
url('../fonts/MesloLGS-NF-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'MesloLGS NF';
src: url('../fonts/MesloLGS-NF-Italic.woff2') format('woff2'),
url('../fonts/MesloLGS-NF-Italic.woff') format('woff'),
url('../fonts/MesloLGS-NF-Italic.ttf') format('truetype');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'MesloLGS NF';
src: url('../fonts/MesloLGS-NF-Bold.woff2') format('woff2'),
url('../fonts/MesloLGS-NF-Bold.woff') format('woff'),
url('../fonts/MesloLGS-NF-Bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'MesloLGS NF';
src: url('../fonts/MesloLGS-NF-Bold-Italic.woff2') format('woff2'),
url('../fonts/MesloLGS-NF-Bold-Italic.woff') format('woff'),
url('../fonts/MesloLGS-NF-Bold-Italic.ttf') format('truetype');
font-weight: bold;
font-style: italic;
}
......@@ -103,6 +103,8 @@ RUN mkdir /opt/code-server \
&& cd /opt/code-server \
&& curl -sL https://github.com/cdr/code-server/releases/download/v${CODE_SERVER_RELEASE}/code-server-${CODE_SERVER_RELEASE}-linux-$(dpkg --print-architecture).tar.gz | tar zxf - --strip-components=1 \
&& curl -sL https://upload.wikimedia.org/wikipedia/commons/9/9a/Visual_Studio_Code_1.35_icon.svg -o vscode.svg \
## Include custom fonts
&& sed -i 's|</head>| <link rel="stylesheet" type="text/css" href="{{CS_STATIC_BASE}}/src/browser/assets/css/fonts.css">\n </head>|g' /opt/code-server/src/browser/pages/vscode.html \
&& cd /
ENV PATH=/opt/code-server/bin:$PATH
......@@ -136,6 +138,8 @@ RUN export CODE_BUILTIN_EXTENSIONS_DIR=/opt/code-server/vendor/modules/code-oss-
## Set JupyterLab Dark theme
&& mkdir -p /usr/local/share/jupyter/lab/settings \
&& echo '{\n "@jupyterlab/apputils-extension:themes": {\n "theme": "JupyterLab Dark"\n }\n}' > /usr/local/share/jupyter/lab/settings/overrides.json \
## Include custom fonts
&& sed -i 's|</head>|<link rel="stylesheet" type="text/css" href="{{page_config.fullStaticUrl}}/assets/css/fonts.css"></head>|g' /usr/local/share/jupyter/lab/static/index.html \
## Install code-server extensions
&& cd /tmp \
&& curl -sLO https://dl.b-data.ch/vsix/alefragnani.project-manager-12.4.0.vsix \
......@@ -199,6 +203,8 @@ RUN mkdir -p .local/share/code-server/User \
&& cp -a $HOME /var/tmp
## Copy local files as late as possible to avoid cache busting
COPY assets /opt/code-server/src/browser/assets
COPY assets /usr/local/share/jupyter/lab/static/assets
COPY scripts/. /
EXPOSE 8888
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment