Commit Graph

216 Commits

Author SHA1 Message Date
Sylvestre Ledru ef06b3100e Fix tracking image links to point to repos instead of raw CSV files 2026-04-01 08:30:03 +02:00
Sylvestre Ledru 0e5a991130 Add new project pages
Add pages for acl, bsdutils, hostname, login, procps, sed, tar,
and util-linux.
2026-04-01 08:29:59 +02:00
Sylvestre Ledru 5b81796838 Add dropdown menu styles and constrain image width
Add CSS for the projects dropdown menu (desktop and mobile) and
limit images in main content to max-width: 100%.
2026-04-01 08:29:55 +02:00
Sylvestre Ledru e0c93eed2d Add WIP conditionals and good first issues link to project template
Hide installation/documentation links for WIP projects and add a
link to good first issues.
2026-04-01 08:29:51 +02:00
Sylvestre Ledru bcf42b61db Add projects dropdown menu in navigation
Replace flat nav links with a dropdown listing all project pages.
2026-04-01 08:29:45 +02:00
Sylvestre Ledru 9058d57cfe Update Zola config for v0.22 compatibility
The highlighting config format changed in Zola 0.22: use
[markdown.highlighting] with style/light_theme/dark_theme fields
instead of the old highlight_code/highlight_theme fields.
2026-04-01 08:29:42 +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 50ea269a4d Merge pull request #48 from uutils/sylvestre-patch-1
add apt update before install
2026-03-27 10:18:11 +01:00
Sylvestre Ledru 91eff6008f add apt update before install 2026-03-27 10:08:06 +01:00
Sylvestre Ledru 3fbdfe9225 Add localized generation date at the bottom of doc pages 2026-03-26 17:49:05 +01:00
Sylvestre Ledru 42d579a161 Install babel in CI for locale display name generation 2026-03-22 20:40:44 +01:00
Sylvestre Ledru 24a8207e0a Auto-detect locales in build-docs-l10n.sh from coreutils source
Replace hardcoded FTL_TO_URL and LANG_NAMES maps with dynamic
detection. ftl_to_url() derives URL codes from FTL filenames
(e.g., fr-FR -> fr, zh-Hans -> zh-Hans). locale_display_name()
uses python3+babel for native language names with fallback to the
code itself. New locales are now picked up automatically without
editing the scripts.
2026-03-22 20:40:25 +01:00
Sylvestre Ledru 57433becaa Fix language selector regex to match zh-Hant, zh-Hans, nb-NO, etc.
The URL matching regex only accepted two-letter codes or two-letter
plus two uppercase (e.g., pt-BR), missing codes like zh-Hant with
longer suffixes. Use [a-zA-Z]+ after the hyphen to match all codes.
2026-03-22 20:00:48 +01:00
Sylvestre Ledru 0f38d27854 Fall back to English tldr examples when translation is missing
Merge translated tldr zips with the English one so that utilities
without translated examples (e.g., cut in French) still show the
English examples instead of having no Examples section at all.
Add a notice on affected pages linking to the tldr-pages project
for contributors to help translate the examples.
2026-03-22 19:52:08 +01:00
Sylvestre Ledru 50a4a9de74 Fix set -e compatibility in build-docs-l10n.sh
Use a global variable (MERGE_HAD_FALLBACK) instead of return codes
for merge_ftl, and use if/fi instead of [ ] && cmd in restore_en.
Both patterns caused silent script abortion under set -euo pipefail
when returning non-zero exit codes.
2026-03-22 18:40:01 +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 346b919a8c Add Weblate translation notice on pages with untranslated strings
When a utility page has strings that fell back to English, inject a
notice linking to the corresponding Weblate translation page so
contributors can help complete the translation.
2026-03-22 18:40:01 +01:00
Sylvestre Ledru f108503f5a Merge translated FTL with English fallback instead of replacing
When building translated docs, the script was replacing en-US.ftl
entirely with the translated file. This caused raw FTL identifiers
(e.g. mknod-help-mode) to appear in the docs when translations were
empty or partial. Now merges translated keys with English so that
untranslated keys fall back to English text.
2026-03-22 18:40:01 +01:00
Sylvestre Ledru eb5433425b Fix stale uucore locales path in build-docs-l10n.sh 2026-03-22 18:40:01 +01:00
Sylvestre Ledru d03e51d3a7 Fix build-docs-l10n.sh: resolve coreutils dir to absolute path
The script uses cd then references the dir again, so a relative
path like 'coreutils' breaks. Resolve to absolute at startup.
2026-03-22 09:42:33 +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 3fb2289988 Auto-detect locales in build-docs-l10n.sh from coreutils source
Scan coreutils/src/uu/ls/locales/*.ftl to discover available
translations instead of maintaining a hardcoded language list.
2026-03-22 09:35:10 +01:00
Sylvestre Ledru f0c206ab48 Improve theme patch: dynamic locale list, fix local file:// URLs
- Scan coreutils-l10n for available locales instead of hardcoding
- Fix language switcher to use relative path replacement so it works
  with both deployed and local file:// URLs
- Move links into the existing .additional div for better layout
2026-03-22 09:35:02 +01:00