SSH host keys have changed! See this Discourse post for details.

Verified Commit 3c341b57 authored by Lars Bilke's avatar Lars Bilke
Browse files

[web] Added Jupyter notebook styling.

parent 8ba13e8d
......@@ -254,4 +254,22 @@ img[src$='#two-third'] {
@apply text-yellow-500;
}
/* ------------------------------- Jupyter --------------------------------- */
.jupyter-input pre {
@apply border-l-4;
@apply border-blue-500;
}
.jupyter-output pre {
@apply border-l-4;
@apply border-red-500;
}
.jupyter-output img {
@apply border-l-4;
@apply border-red-500;
@apply rounded-md;
}
/* ------------------------------------------------------------------------- */
@tailwind utilities;
......@@ -47,6 +47,11 @@
{{ range .Children }}
<li
class="p-1 mr-1 {{if $currentPage.IsMenuCurrent $subsection . }}bg-gray-100 rounded-lg{{ else }}text-gray-700 hover:text-gray-900{{ end }}">
{{ if .Page.Params.notebook }}
<img style="margin-top: 0; margin-bottom: 0; height: 1em;" class="inline-block mr-1"
src="https://upload.wikimedia.org/wikipedia/commons/3/38/Jupyter_logo.svg" alt="">
{{ end }}
<a href="{{ .URL }}" {{if $currentPage.IsMenuCurrent $subsection . }} class="text-brand-500" {{end}}>
{{ .Name }}
</a>
......
......@@ -19,6 +19,18 @@
<h2>Table of contents</h2>
{{.TableOfContents}}
<hr>
{{ end }}
{{ if .Params.notebook }}
<div class="note">
<p style="margin-top: 0; margin-bottom: 0%;"><img style="margin-top: 0; margin-bottom: 0; height: 2em;"
class="inline-block mr-2" src="https://upload.wikimedia.org/wikipedia/commons/3/38/Jupyter_logo.svg" alt="">
This benchmark is available as a Jupyter notebook:
<a href="https://gitlab.opengeosys.org/ogs/ogs/-/blob/master/Tests/Notebooks/{{ .Params.notebook }}">
{{ .Params.notebook }}.
</a>
</p>
</div>
{{ end }}
{{ .Content }}
</div>
......
Markdown is supported
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