switch to using 'monospace' rather than firacode. self host katex

This commit is contained in:
Rachel Lambda Samuelsson 2022-04-01 19:51:48 +02:00
parent 52190776d7
commit 791fa607da
66 changed files with 1118 additions and 15 deletions

22
LICENSE Normal file
View File

@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2022 depsterr <depsterr at protonmail dot com>
Copyright (c) 2013-2020 Khan Academy and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -6,10 +6,12 @@ plugins:
- jekyll-feed
- jekyll-katex
- jekyll/agda
- jekyll-minifier
exclude:
- "*.agdai"
- "readme.md"
- "LICENSE"
katex:
rendering_options:

View File

@ -5,7 +5,6 @@
<meta charset="utf-8">
<title>{{ page.title }} - {{ site.title }}</title>
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/katex.min.css" integrity="sha384-MlJdn/WNKDGXveldHDdyRP1R4CTHr3FeuDNfhsLPYrq2t0UBkUdK2jyTnXPEK1NQ" crossorigin="anonymous">
<link rel="stylesheet" href="{{ "/lagda/Agda.css" | relative_url }}" />
</head>
<body>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

1079
assets/css/katex.scss Normal file

File diff suppressed because it is too large Load Diff

View File

@ -47,6 +47,7 @@ $text-emph: var(--text-emph);
body {
background-color: $background;
font-family: serif;
}
img {
@ -58,20 +59,6 @@ figcaption {
color: $text;
}
@import url(https://cdn.jsdelivr.net/npm/firacode@6.2.0/distr/fira_code.css);
code, .Agda { font-family: 'Fira Code', monospace; }
@supports (font-variation-settings: normal) {
code, .Agda { font-family: 'Fira Code VF', monospace; }
}
code, .Agda {
background-color: $background-alt;
padding: 4px;
font-size: 0.8em;
}
pre code {
display: block;
}
@ -155,3 +142,12 @@ hr {
display: block;
margin: auto;
}
code, .Agda {
font-family: monospace, monospace;
background-color: $background-alt;
padding: 4px;
overflow-x: auto;
}
@import "katex"

View File

@ -8,3 +8,8 @@ sources for depsterr.com. built using jekyll (without a theme).
* jekyll-feed
* jekyll-katex (needs katex)
* jekyll-agda (needs agda)
* jekyll-minifier
## Aknowlegdements
This repository contains katex code for self hosting katex. This code is used under the MIT LICENSE (for details, read the `LICENSE` file).