diff --git a/.gitignore b/.gitignore index ea46bb5..00196c8 100644 --- a/.gitignore +++ b/.gitignore @@ -48,6 +48,21 @@ out/ .DS_Store /dhat-heap.json -# Benchmark artifacts -docs/benchmarks/latest/ -docs/benchmarks/*/ +# Benchmark artifacts. +# +# `docs/benchmarks//` mixes published Pages assets (which must be +# committed so GitHub Pages can serve them) with raw run artifacts (which +# must not). We exclude *files inside* each version dir, then explicitly +# re-include the five files that `bench-support::render_docs` produces +# and that `charts.html` references at runtime — the page 404s without +# `charts.js` / `charts.css`. +# +# Pattern note: `docs/benchmarks/*/*` (file-level) is required instead of +# `docs/benchmarks/*/` (directory-level) because git refuses to re-include +# files whose parent directory is excluded. +docs/benchmarks/*/* +!docs/benchmarks/*/charts.html +!docs/benchmarks/*/charts.css +!docs/benchmarks/*/charts.js +!docs/benchmarks/*/index.md +!docs/benchmarks/*/results.json diff --git a/docs/benchmarks/latest/charts.css b/docs/benchmarks/latest/charts.css new file mode 100644 index 0000000..5c34ee4 --- /dev/null +++ b/docs/benchmarks/latest/charts.css @@ -0,0 +1,182 @@ +/*! + * charts.css — sibling stylesheet for charts.html. + * Sized to run under `style-src 'self'` with no 'unsafe-inline'. + * + * Coordinated tokens with charts.html: + * - `.no-js #loading { display: none; }` cooperates with the parser- + * blocking inline script in , which strips the `no-js` class + * before paints so JS-enabled users immediately see the + * "Loading…" placeholder. JS-disabled users keep the class and the + *