diff --git a/README.md b/README.md index a0855e2..454770d 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,22 @@ `openfluids.github.io` is the openfluids website: an open, collaborative workshop for fluid flows. -A small static site: `docs/index.html`, `docs/style.css` and `docs/llms.txt`. No build step. +The page is built by the machine-made site generator +([machine-made/machine-made.github.io](https://github.com/machine-made/machine-made.github.io)), +the same code, look and tab row as every house. This repository holds the built site in `docs/`. ## Change the site -Edit the files in `docs/` directly and open a pull request. GitHub Pages serves `main`, folder `/docs`. +The content lives in the generator repository, machine-made/machine-made.github.io: `houses/openfluids/site.json`, +with its public list in `houses/openfluids/allow.json`. From a checkout of that repository, build the site into a +checkout of this one and open a pull request here: + +``` +sh publish.sh openfluids "PATH_TO_THIS_CHECKOUT" +``` + +Do not edit `docs/` by hand. GitHub Pages serves `main`, folder `/docs`. + +## Licence + +Apache-2.0. See [LICENSE](LICENSE). The fonts in `docs/fonts/` stay under the SIL Open Font License 1.1. See `docs/fonts/mm-sans-OFL.txt` and `docs/fonts/mm-weft-OFL.txt`. diff --git a/STATUS.md b/STATUS.md index e38c297..4d274b5 100644 --- a/STATUS.md +++ b/STATUS.md @@ -12,8 +12,8 @@ ## Proven -- Hand-written static page: no build step, no web fonts, no font files. +- Built by the machine-made site generator. The page is set in machine-made Weft and machine-made Sans, files in `docs/fonts/` with their licences; it loads no other font and makes no external request. ## Open risks -- The logo and favicon load from the GitHub avatar URL of the org. +- None known. diff --git a/docs/fonts/lato-400.woff2 b/docs/fonts/lato-400.woff2 deleted file mode 100644 index ff60934..0000000 Binary files a/docs/fonts/lato-400.woff2 and /dev/null differ diff --git a/docs/fonts/lato-OFL.txt b/docs/fonts/mm-sans-OFL.txt similarity index 70% rename from docs/fonts/lato-OFL.txt rename to docs/fonts/mm-sans-OFL.txt index bf01e7a..fd56bf8 100644 --- a/docs/fonts/lato-OFL.txt +++ b/docs/fonts/mm-sans-OFL.txt @@ -1,8 +1,10 @@ -Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-HairlineItalic.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-Light.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-LightItalic.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-Regular.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-Italic.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-Bold.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-BoldItalic.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-Black.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. Lato-BlackItalic.ttf: Copyright (c) 2010-2011 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1. +Copyright 2020 The Plus Jakarta Sans Project Authors (https://github.com/tokotype/PlusJakartaSans) +Copyright 2026 The machine-made Sans Project Authors (https://github.com/machine-made/type), +with Reserved Font Name "machine-made". This Font Software is licensed under the SIL Open Font License, Version 1.1. This license is copied below, and is also available with a FAQ at: -http://scripts.sil.org/OFL +https://openfontlicense.org ----------------------------------------------------------- @@ -18,7 +20,7 @@ with others. The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The -fonts, including any derivative works, can be bundled, embedded, +fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The diff --git a/docs/fonts/mm-sans.woff2 b/docs/fonts/mm-sans.woff2 new file mode 100644 index 0000000..2814a99 Binary files /dev/null and b/docs/fonts/mm-sans.woff2 differ diff --git a/docs/fonts/mm-weft.woff2 b/docs/fonts/mm-weft.woff2 index 496b375..b32fe74 100644 Binary files a/docs/fonts/mm-weft.woff2 and b/docs/fonts/mm-weft.woff2 differ diff --git a/docs/index.html b/docs/index.html index 2a92fdd..e8e5402 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,8 +8,17 @@ + + + + + + + + + - + @@ -17,8 +26,9 @@

@@ -30,31 +40,31 @@

Stability

Analysis

Solvers

Runs

diff --git a/docs/llms.txt b/docs/llms.txt index 9c5f073..765f88d 100644 --- a/docs/llms.txt +++ b/docs/llms.txt @@ -6,7 +6,7 @@ Open code for fluid mechanics. ## Stability -- [linstabpy](https://github.com/openfluids/linstabpy): linear stability and resolvent analysis ([site](https://linstabpy.vercel.app/)) +- [linstabpy](https://github.com/openfluids/linstabpy): linear stability and resolvent analysis ([docs](https://linstabpy.vercel.app/)) - [nekStab](https://github.com/nekStab/nekStab): stability and bifurcation for Nek5000 ## Analysis @@ -31,3 +31,4 @@ Open code for fluid mechanics. - [machine-made](https://machine-made.github.io/) - [openfluids](https://openfluids.github.io/) - [BoringQuantSystems](https://boringquantsystems.github.io/) +- [type](https://machine-made.github.io/type/) diff --git a/docs/style.css b/docs/style.css index 61135b1..f9b35b0 100644 --- a/docs/style.css +++ b/docs/style.css @@ -1,6 +1,6 @@ @font-face{font-family:"machine-made Weft";src:url(fonts/mm-weft.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap} -@font-face{font-family:"Lato";src:url(fonts/lato-400.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap} -:root{--bg:#0d1116;--fg:#e6eef2;--muted:#8395a0;--accent:#5cc8d6;--edge:#25292d;--font:"Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--mono:"machine-made Weft", ui-monospace, "SF Mono", Menlo, Consolas, monospace;--fs:0.9375rem;--ls:1.4375rem;} +@font-face{font-family:"machine-made Sans";src:url(fonts/mm-sans.woff2) format("woff2");font-weight:200 800;font-style:normal;font-display:swap} +:root{--bg:#0d1116;--fg:#e6eef2;--muted:#8395a0;--accent:#5cc8d6;--edge:#25292d;--font:"machine-made Sans", system-ui, sans-serif;--mono:"machine-made Weft", ui-monospace, monospace;--ws:0.05em;--fs:1rem;--ls:1.5rem;} /* The colours, the fonts and the sizes of a house come first (:root). */ :root { @@ -92,7 +92,8 @@ a:focus-visible { margin-inline: auto; } -/* The top bar: the three sites. Weft sets it on every house. */ +/* The top bar: the three sites and the type site. Weft sets it on every house. The current site is + marked and is not a link. */ .bar { display: flex; flex-wrap: wrap; @@ -102,18 +103,29 @@ a:focus-visible { letter-spacing: 0.04em; } -.bar a { +.bar a, +.bar span { + display: inline-flex; + align-items: center; padding-block: 6px; color: var(--muted); overflow-wrap: anywhere; } -.bar a[aria-current="page"] { +.bar [aria-current="page"] { color: var(--fg); text-decoration: underline 2px var(--accent); text-underline-offset: 6px; } +/* On a narrow screen every link is at least 44 px high. */ +@media (max-width: 720px) { + .bar a, + .bar span { + min-height: 44px; + } +} + /* The banner is the image of the GitHub profile. Its top and bottom edges fade into the ground. */ .banner { display: block; @@ -135,10 +147,12 @@ a:focus-visible { font-size: var(--ls); line-height: 1.3; text-wrap: balance; + word-spacing: var(--ws); } .blurb { max-width: 52ch; + word-spacing: var(--ws); font-size: calc(var(--fs) * 0.88); color: var(--muted); } @@ -181,13 +195,6 @@ a:focus-visible { min-width: 0; } -.whole { - display: grid; - gap: 4px; - min-width: 0; - overflow: hidden; -} - .pic { display: block; overflow: hidden; @@ -203,18 +210,30 @@ a:focus-visible { border-radius: 2px; } -.plate .nm { - font-size: calc(var(--fs) * 0.95); - overflow-wrap: anywhere; -} - .plate .ds { + word-spacing: var(--ws); font-size: calc(var(--fs) * 0.8); color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; } +/* The small link after a description: always underlined, so a touch screen shows it too. */ +.ds a { + color: var(--fg); + text-decoration: underline 1px var(--accent); + text-underline-offset: 0.2em; +} + +@media (max-width: 720px) { + .ds a { + display: flex; + align-items: center; + width: fit-content; + min-height: 44px; + } +} + footer { margin-top: 40px; font: 400 0.71875rem / 1 var(--mono); @@ -224,10 +243,12 @@ footer { /* Hover effects only for pointers that hover. Motion only when the reader has not asked for less. */ @media (hover: hover) { - .whole:hover .nm, - .nm:hover { - text-decoration: underline 1px var(--accent); - text-underline-offset: 0.2em; + .pic:hover img { + outline-color: var(--accent); + } + + .ds a:hover { + text-decoration-thickness: 2px; } } @@ -239,7 +260,6 @@ footer { } @media (hover: hover) and (prefers-reduced-motion: no-preference) { - .whole:hover img, .pic:hover img { transform: scale(1.02); }