304 Commits

Author SHA1 Message Date
Sylvestre Ledru 281bf18b68 playground: fix history.replaceState shadowed by terminal's history global 2026-06-02 20:46:12 +02:00
Sylvestre Ledru 617f980bf5 playground: update URL when clicking an example 2026-06-02 18:05:37 +02:00
Sylvestre Ledru ea9dcebef6 playground: show the grep build commit and date
The playground version line records the coreutils WASM commit and the
site commit, but grep (built as its own standalone WASM module) had no
provenance shown. Capture grep's commit/short/date in the workflow and
append a UUTILS_GREP_VERSION block to version.js, then render it next to
"Built from uutils/coreutils ..." as "grep <short> (<date>)" linking to
the uutils/grep commit.
2026-06-02 16:41:03 +02:00
Sylvestre Ledru 77efde6da3 Add uutils grep to the playground
grep ships as its own standalone WASM module (not part of the coreutils
multicall binary) and depends on the Oniguruma C library, so the website
workflow now checks out uutils/grep, installs the WASI SDK to provide a
wasm sysroot for the onig_sys C sources, builds grep.wasm, and appends
"grep" to the generated command list.

The terminal loads grep.wasm as an optional second module and dispatches
grep directly (argv[0] = "grep"). grep defaults to --color=never since the
WASI shim reports stdout as a TTY, which would otherwise emit match-
highlight escapes that corrupt piped output; explicit --color is honored.

Adds a grep emoji example and grep WASM integration tests.
2026-06-02 13:47:45 +02:00
Sylvestre Ledru 5e4b56abf4 reviews: suggest contributing missing tests upstream to GNU 2026-05-30 11:20:26 +02:00
Sylvestre Ledru 773a88d028 reviews: discourage silencing clippy with allow(dead_code) 2026-05-30 11:19:01 +02:00
Sylvestre Ledru 071044606b link to the playground 2026-05-30 10:46:11 +02:00
Sylvestre Ledru 7bab64edcd reviews: credit the astral-sh and Mozilla AI policies 2026-05-30 10:33:32 +02:00
Sylvestre Ledru 71470b5577 reviews: clarify the own-words rule is not about English fluency 2026-05-30 10:33:32 +02:00
Sylvestre Ledru 59f7b78c31 reviews: maintainers may disregard AI-generated review comments 2026-05-30 10:33:32 +02:00
Sylvestre Ledru cc478199b6 reviews: ask for issues and PR text in the author's own words 2026-05-30 10:33:32 +02:00
Sylvestre Ledru 6a648d2ecb Add Review Guidelines page and link it in the nav 2026-05-30 10:33:31 +02:00
Sylvestre Ledru 72f388d99b Add Review Guidelines page and link it in the nav 2026-05-30 10:24:06 +02:00
Sylvestre Ledru 746f8e1789 Add Review Guidelines page and link it in the nav 2026-05-30 10:00:23 +02:00
Sylvestre Ledru bb8a4dc97d Add shadow-rs project page 2026-05-30 09:54:48 +02:00
Sylvestre Ledru 98c6ab23b1 Merge pull request #51 from xtqqczze/patch-1
Hide `true` and `false` from the playground command list
2026-05-29 11:23:45 +02:00
Sylvestre Ledru c037b4553e Show uutils.github.io build commit on the playground page
Alongside the coreutils WASM commit, record the website repo's
commit/date in version.js (SITE_VERSION) and display it next to
the existing build info on the playground.
2026-05-29 10:58:06 +02:00
xtqqczze f25d426b95 Hide true and false from the playground command list
`true` and `false` ship in the WASM binary, but are not a useful demonstration because they produce no output and there is no facility to check exit code in the playground.
2026-05-24 02:25:20 +01:00
Sylvestre Ledru c8e78040fe Hide yes from the playground command list
`yes` ships in the WASM binary but its infinite output just spams the
terminal, so filter it out of the generated WASM_COMMANDS list. Done
in the workflow so a single regex covers both autocomplete/help (via
AVAILABLE_COMMANDS) and the rendered prose section.
2026-05-13 08:45:22 +02:00
Sylvestre Ledru 27435ba3dc Fix id collision between commands placeholder and section heading
Zola auto-generates id="available-commands" on the "Available commands"
<h2>. The placeholder <p> shared that id, so getElementById matched the
heading first and the populate-from-WASM_COMMANDS script ended up
overwriting the heading text — rendering the command list at h2 size.
Rename the placeholder to a non-colliding id.
2026-05-13 08:43:16 +02:00
Sylvestre Ledru bf07dc3dc3 Populate playground's "Available commands" list from WASM_COMMANDS
Replaces the hand-maintained inline-code list in playground.md with
a placeholder that the page script fills from the build-generated
WASM_COMMANDS, so the prose section stays in sync with the actual
feat_wasm contents of the WASM binary.
2026-05-13 08:16:53 +02:00
Sylvestre Ledru c5907a4b59 Generate playground command list from coreutils feat_wasm
Previously the list of WASM-bundled utilities was hardcoded in
wasm-terminal.js and playground.md, which drifted from the actual
feat_wasm feature in coreutils/Cargo.toml (e.g. dd, tty, yes were
missing). The website workflow now parses feat_wasm at build time
and emits static/wasm/commands.js, which the terminal prefers over
its built-in fallback list.
2026-05-13 08:13:39 +02:00
renovate[bot] 7ef8b73d84 Update actions/upload-pages-artifact action to v5 2026-04-14 07:11:38 +02:00
Sylvestre Ledru 5fedd124b0 Update link for Ubuntu's adoption of uutils coreutils
Closes: #49
2026-04-13 13:27:39 +02:00
Sylvestre Ledru 0ab3699bcc Add playground section to README 2026-04-13 09:32:42 +02:00