Skip to content

docs: README examples on weather data, screenshots as light and dark pairs - #216

Merged
eizedev merged 3 commits into
mainfrom
docs/readme-examples
Nov 25, 2026
Merged

eizedev merged 3 commits into
mainfrom
docs/readme-examples

Conversation

@eizedev

@eizedev eizedev commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Closes #212

What changes

  • One weather example per module, each a live example on its docs page, on the Open-Meteo snapshot the Pivot showcase already ships:
    • ECharts: "Temperature of six cities" on Lines and time. Monthly mean temperature as lines, -Aggregate Avg, y axis "Celsius".
    • Perspective: "Temperature per city" on The starting view. A Y Bar chart with a title from -Config.
    • Pivot: "Weather of six cities" on the Pivot overview. A table as a colour scale; the tabs Table, Chart and Both. It has no App, so the Pivot showcase does not list it.
  • README and start page use the same three light/dark pairs. The README uses <picture> with prefers-color-scheme. The start page uses #only-light and #only-dark. Open-Meteo is credited once on each.
  • screenshots.mjs takes the three examples from the built site, light and dark, at a 1,200 px window. For the shots it hides the navigation and the table of contents and makes the header scroll away, so every example has the same width.
  • Why Both was missing: the site bundles pivotkit-react 0.10.0 as pinned. pivotkit offers Both only on a "wide" report, 1,024 px or more (use-report-size.js). In the docs column the report is about 893 px. The shot layout gives it the room. On the docs pages at normal widths the tab stays hidden; that is pivotkit's breakpoint, which I did not change.
  • pivot-report-*.png was used only by the README and the start page. Both now use the weather pairs, so the two files are gone. pivot-showcase-weather-* stays on the showcase page.
  • The Pivot section links pivotkit's site and its live demo. The README has one link line under the badges.
  • The site's Invoke-RestMethod stub answers an address with a query string from data/Addresses.psd1. docs/development/index.md says so in its "Public data" row. Addresses.psd1 ships in the Pivot demo module; only its comment changed.
  • The IT-operations examples stay on the docs pages and in the showcase apps.

Not done

  • No shared helper for the Open-Meteo call. examples.ps1 asks every example to be self-contained, because readers copy a block as it is. So each of the three carries its call and row mapping.
  • The README's quick start picture stays the existing PSU pair. It shows the quick start app's own result.

Growth

docs/site/examples.ps1 grows from 510 to 552 code lines (--accept-growth): three self-contained examples. The README is one line shorter. When this and #214 are both open, the one merged second may need node build/growth.js --update for the total lines.

Checked

  • npm test (174 pass), npm run growth (ok), Invoke-ScriptAnalysis (no findings), PivotDemo.Tests.ps1 (18 pass).
  • Build-Site.ps1 and zensical build ("No issues found"); tests/browser/site.spec.mjs in Chromium (29 pass).
  • vale on the changed Markdown: no new errors.
  • Every new picture opened in light and dark.
  • The README on GitHub at 390 px in light and dark: no sideways scroll; the first picture starts 675 px below the README's top; each picture switches with the theme.
  • The start page at 390 px in light and dark: no sideways scroll.
  • The ECharts example at 390 and 500 px: the axis title "Celsius" is whole.

Neutral review

Two rounds by an independent reviewer (read only, fresh context):

  • First round, "do not merge yet": the start-page Pivot shot showed the admin bar and the tip banner and had no Both tab; the README Pivot shot was clipped; the Perspective shot had an empty third; the start page used older images than the README; the ECharts axis title was clipped at narrow widths. Fixed in ffb94f8: the cause of the missing Both tab was the report width (pivotkit shows Both from 1,024 px), so the screenshot script widens the column for the shots.
  • Follow-up on ffb94f8: all six images checked in light and dark, same content, nothing clipped, README and start page use the same pairs. Workaround, not a fix: the axis title is shortened to "Celsius"; how New-UDEChart handles a long -YTitle at narrow widths is unchanged.

🤖 Generated with Claude Code

…pairs

ECharts and Perspective get a live example on Open-Meteo's weather of six
cities on their docs pages; screenshots.mjs takes them and the pivot report
from the built site, light and dark. The README shows those pairs and the
pivot showcase's weather pair, links pivotkit's site and live demo, and has
one link line. The site's Invoke-RestMethod stub answers an address with a
query string from data/Addresses.psd1.

Closes #212

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eizedev and others added 2 commits November 25, 2026 19:10
…Both

The README and the start page show the same three light/dark pairs, all
taken from the built site: the ECharts lines, a Perspective bar chart with
a title, and a new pivot example on the weather data. screenshots.mjs
widens the content column for the shots, so every example is as wide and
the pivot report reaches pivotkit's wide size, where it offers Both. The
pivot-report pictures are no longer used and gone.

Refs #212

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eizedev
eizedev merged commit 8a277b4 into main Nov 25, 2026
11 checks passed
@eizedev
eizedev deleted the docs/readme-examples branch November 25, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

README: examples anyone understands, screenshots in light and dark

1 participant