Commit Graph

67 Commits

Author SHA1 Message Date
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 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 7131cf384a Fix YAML indentation in website workflow heredoc
The heredoc body for version.js was at column 0 while the surrounding
run block is indented 10 spaces, causing YAML to terminate the block
scalar and fail with 'Invalid workflow file' at line 146. Replace the
heredoc with a grouped echo block that respects the block indentation.
2026-04-13 09:17:26 +02:00
Sylvestre Ledru d843e3d2c2 Show uutils commit hash and date on playground page
Emit a version.js alongside the WASM binary in CI recording the
coreutils commit used for the build, and display it under the
terminal with a link to the commit on GitHub.
2026-04-13 09:02:41 +02:00
Sylvestre Ledru e64308bb0b Strip legacy FA4 class from uudoc-generated platform icons
mdbook 0.5's built-in Font Awesome parser sees the legacy `fa` class
that uudoc emits and defaults to type=regular, failing to find
linux/windows/apple (which live under `brands`) and spamming hundreds
of WARN lines per build. Drop the `fa ` prefix between uudoc and
mdbook build for both English and translated docs.
2026-04-04 23:16:11 +02:00
Sylvestre Ledru c7f75bfccb Merge pull request #45 from uutils/renovate/shalzz-zola-deploy-action-0.x
Update shalzz/zola-deploy-action action to v0.22.1
2026-04-04 22:56:41 +02:00
renovate[bot] 51dffbc8a8 Update shalzz/zola-deploy-action action to v0.22.1 2026-04-04 20:23:51 +00:00
Sylvestre Ledru e7c117a617 CI: generate available locales list during WASM build 2026-04-04 11:11:33 +02:00
Sylvestre Ledru adc6d38c5a Add playground tests and CI integration
- Browser-based unit tests (111 tests) covering parsing, builtins,
  pipes, UTF-8, l10n, virtual filesystem, and WASM integration
- Headless Puppeteer test runner (scripts/run-tests.js)
- CI workflow step to build WASM and run tests
2026-04-03 21:47:38 +02:00
renovate[bot] 7dedc38e11 Update actions/checkout action to v6 2026-03-27 10:43:38 +01:00
renovate[bot] ee7de7abdd Update actions/upload-artifact action to v7 2026-03-27 10:42:34 +01:00
renovate[bot] 6497b8e56e Update actions/deploy-pages action to v5 2026-03-27 10:33:20 +01:00
Sylvestre Ledru 91eff6008f add apt update before install 2026-03-27 10:08:06 +01:00
Sylvestre Ledru 42d579a161 Install babel in CI for locale display name generation 2026-03-22 20:40:44 +01:00
Sylvestre Ledru 59e691e8e1 Exclude en-US.ftl when copying l10n locales into coreutils
The l10n repo contains en-US.ftl files that can overwrite the
coreutils English originals, causing translated docs to show text
from the wrong language. Skip en-US.ftl during the copy to preserve
the authoritative English strings.
2026-03-22 18:40:01 +01:00
Sylvestre Ledru 337375bb49 Pass coreutils-l10n dir to theme patch script in CI 2026-03-22 09:35:17 +01:00
Sylvestre Ledru 7f9102ed0c Replace manpage build with multi-language mdbook docs in CI
- Remove manpage generation step and man2html dependency
- Add mdbook theme patching for language selector and utility links
- Repack tldr zip with pages/ prefix (uudoc expects this structure)
- Build translated docs via build-docs-l10n.sh for 18 languages
- Collect translated docs to /coreutils/docs-{lang}/
2026-03-22 09:13:57 +01:00
Sylvestre Ledru 96cc48809d Fix l10n copy: only copy locales into existing coreutils utilities
The l10n repo contains utilities (e.g. hashsum) that don't exist in
the coreutils workspace. Copying entire directories created phantom
workspace members that broke Cargo.
2026-03-21 23:07:49 +01:00
Sylvestre Ledru f16fe412fd Fix CI: copy l10n before docs build, handle manpage build failures
- Move l10n locale copy to a separate workflow step before docs build
  to avoid triggering uudoc rebuilds with different cargo features
- Build uudoc once, then reuse for all languages
- Handle per-language build failures gracefully (skip and continue)
- Remove unused L10N_DIR parameter from build-all-manpages.sh
2026-03-21 23:03:03 +01:00
Sylvestre Ledru 59735c57a6 Wire up multi-language manpage build in CI workflow
- Checkout coreutils-l10n repo for translations
- Replace inline manpage generation with build-all-manpages.sh
- Fix tldr download URL to use GitHub releases
- Collect translated manpages into /coreutils/manpages-{lang}/
2026-03-21 22:23:22 +01:00
Sylvestre Ledru 34d1aab2b7 fix the tldr download 2026-03-21 20:46:04 +01:00
Sylvestre Ledru 9929d430db improve the rendering of the man pages 2026-03-21 20:38:55 +01:00
Sylvestre Ledru dc7e2344b1 Fix manpage build: remove deprecated mdbook field and fix index generation
- Strip 'multilingual' from book.toml before mdbook build (removed in newer versions)
- Generate a self-contained manpages index.html instead of relying on Zola
  (the Zola approach failed due to wrong paths and content conflict with coreutils.md)
- Copy manpage HTML files in the collect step so they end up at /coreutils/manpages/
2026-03-21 19:23:38 +01:00