diff options
| author | yum <yum.food.vr@gmail.com> | 2025-09-24 20:36:13 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-09-24 20:46:13 -0700 |
| commit | feb25c70651a64fd2c2cea6bdf6efdff3051154c (patch) | |
| tree | f8059f113bbd9bab7d6e5ee61f54ababaccfe807 | |
| parent | 9059a4a9049cf7a84b120d688e46e9aa81712c1c (diff) | |
shit yourself
| -rwxr-xr-x | README.md | 1 | ||||
| -rwxr-xr-x | index.md | 1 | ||||
| -rwxr-xr-x | make_html | 5 | ||||
| -rwxr-xr-x | template.html | 22 |
4 files changed, 18 insertions, 11 deletions
@@ -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 ``` @@ -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: @@ -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); } |
