summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xREADME.md1
-rwxr-xr-xindex.md1
-rwxr-xr-xmake_html5
-rwxr-xr-xtemplate.html22
4 files changed, 18 insertions, 11 deletions
diff --git a/README.md b/README.md
index 76b86c3..5bfb957 100755
--- a/README.md
+++ b/README.md
@@ -5,6 +5,7 @@ this is the source code for my website, [yummers.dev](https://yummers.dev)
to build:
```bash
+# install pandoc>=3.8, zip
$ ./make_html index.md
```
diff --git a/index.md b/index.md
index 46b5b1d..1164d51 100755
--- a/index.md
+++ b/index.md
@@ -427,6 +427,7 @@ I made two non obvious decisions in the way I bake the vertex offsets:
think in terms of the bounding box dimensions rather than the square root of
the sum of squares of the box's dimensions. Like if your box is 1x0.6x0.2,
then you can just raymarch a primitive with those dimensions and your
+ simulation Just Works.
The origin point is recovered on the GPU as follows:
diff --git a/make_html b/make_html
index 717a04e..e021eb5 100755
--- a/make_html
+++ b/make_html
@@ -23,10 +23,7 @@ pandoc \
unzip -o "$OUTPUT_DIR/site.zip" -d /var/www/html/
# Remove in-page hash fragments from TOC links on the landing page so links open at page top
-sed -E -i 's/(href="[^"#]+\.html)#[^"]+"/\1"/g' /var/www/html/index.html || true
-gzip -k -9 -f js/*.js
-gzip -k -9 -f js/*.css
-cp -r js /var/www/html/
+sed -E -i 's/(href="[^"#]+\.html)#[^"]+"/\1"/g' /var/www/html/index.html
cp -r vr_assets /var/www/html/
cp -r images /var/www/html/
diff --git a/template.html b/template.html
index a7d93be..ae3cd6a 100755
--- a/template.html
+++ b/template.html
@@ -22,8 +22,17 @@ $endif$
$styles.html()$
</style>
<style>
- :root {
- color-scheme: light dark;
+ /* regular text */
+ body {
+ font-family: "Times New Roman", Times, "Iowan Old Style", "Apple Garamond", serif;
+ }
+ /* code */
+ pre, code, kbd, samp {
+ font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
+ }
+ /* math */
+ math {
+ font-family: "Cambria Math", "Latin Modern Math", "STIX Two Math", serif;
}
@media (prefers-color-scheme: dark) {
/* Tomorrow night theme: https://github.com/chriskempson/tomorrow-theme */
@@ -43,6 +52,7 @@ $endif$
}
}
@media (prefers-color-scheme: light) {
+ /* Tomorrow theme: https://github.com/chriskempson/tomorrow-theme */
:root {
--background-color: #ffffff;
--current-line-color: #e0e0e0;
@@ -58,7 +68,7 @@ $endif$
--purple-color: #8959a8;
}
}
-
+ /* basic styling */
html, body {
background-color: var(--background-color);
color: var(--foreground-color);
@@ -75,18 +85,16 @@ $endif$
::selection {
background-color: var(--selection-color);
}
+ /* code */
.sourceCode {
background-color: var(--current-line-color);
- padding: 1em;
border-radius: 1em;
}
.sourceCode pre {
- margin: 0;
- padding: 0;
+ padding: 1em;
background: transparent;
color: var(--foreground-color);
}
- .sourceCode code { background: transparent; }
/* Pandoc syntax highlighting token classes */
code span.co, code span.an, code span.do, code span.cv { color: var(--comment-color); }
code span.kw, code span.cf, code span.er { color: var(--red-color); }