A file lock waits out Windows removing the previous holder's lock; the site's header fits one row on a phone, the tools page draws its claims, and the README opens on the wordmark

- On Windows a lock directory being removed answers access denied, not already exists, so a
  second writer, such as two MCP servers signing in at once, failed instead of waiting.
- The header is Docs, Tools and the GitHub mark, one row down to 320px; /themes folds into the
  homepage's gallery and redirects there.
- The tools page has a terminal of measured rows beside its intro and a chart of whole-task cost
  against Luxe's 1x beside its table; Pi leaves the comparison.
- The README opens on a generated wordmark banner that carries its own colors.
This commit is contained in:
Evan Whittaker
2026-10-17 16:58:08 -05:00
parent 846a413a4d
commit 3c69a90b06
15 changed files with 534 additions and 420 deletions

View File

@@ -141,6 +141,28 @@ tokens() { cargo run --quiet --release -p luxe-tui --example theme_css; }
catalog() { cargo run --quiet --release -p luxe-tui --example theme_css -- --json; }
shiki() { cargo run --quiet --release -p luxe-tui --example shiki_theme -- "$@"; }
# The README's wordmark. GitHub shows an image on its own, where the CSS variables the site paints
# the letters with do not exist and every letter would fall back to black, so this copy carries
# the theme's own colors and its background: the same on GitHub's light pages as on its dark ones.
banner() {
python3 - "$1/wordmark.svg" "$1/tokens.css" <<'PY'
import re, sys
svg, css = (open(path).read() for path in sys.argv[1:])
color = lambda name: re.search(rf"--luxe-{name}:\s*(#[0-9a-f]{{6}})", css).group(1)
svg = re.sub(r"var\(--luxe-(wordmark-\d), currentColor\)", lambda m: color(m.group(1)), svg)
width, height = (int(n) for n in re.search(r'viewBox="0 0 (\d+) (\d+)"', svg).groups())
pad_x, pad_y = 120, 72
box = (width + 2 * pad_x, height + 2 * pad_y)
svg = re.sub(
r'viewBox="[^"]*" width="\d+" height="\d+"',
f'viewBox="{-pad_x} {-pad_y} {box[0]} {box[1]}" width="{box[0]}" height="{box[1]}"',
svg,
)
background = f'<rect x="{-pad_x}" y="{-pad_y}" width="{box[0]}" height="{box[1]}" rx="16" fill="{color("background")}"/>'
print(svg.replace("</title>", "</title>\n " + background, 1), end="")
PY
}
generate() {
local target="$1" guide_target="$2"
mkdir -p "${target}" "${guide_target}"
@@ -149,6 +171,7 @@ generate() {
wordmark mark >"${target}/mark.svg"
wordmark tile >"${target}/tile.svg"
tokens >"${target}/tokens.css"
banner "${target}" >"${target}/wordmark-banner.svg"
catalog >"${target}/themes.json"
facts "${target}" >"${target}/facts.json"
shiki luxe >"${target}/shiki-luxe.json"

View File

@@ -37,7 +37,6 @@ const web = fileURLToPath(new URL("../web/", import.meta.url));
/** Pages worth opening, and what has to be alive on each once it has settled. */
const PAGES = [
{ path: "/", demos: true, stills: true },
{ path: "/themes/", demos: false, stills: false },
{ path: "/docs/", demos: false, stills: false },
];

View File

@@ -37,7 +37,6 @@ const PAGES = [
shine: ".hero__mark .wordmark",
captures: true,
},
{ path: "/themes/", expect: [".theme__name", ".masthead__mark"] },
// The measured bars come from a JSON a script writes, the part that could go missing
{ path: "/tools/", expect: [".bench__bar", ".contrast", ".masthead__mark"] },
{ path: "/docs/", expect: [".docs__body", ".docs__nav"] },