You've already forked uutils.github.io
mirror of
https://github.com/uutils/uutils.github.io.git
synced 2026-06-10 16:12:28 -07:00
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.
This commit is contained in:
@@ -101,6 +101,10 @@ jobs:
|
||||
cd docs
|
||||
# Remove deprecated 'multilingual' field unsupported by newer mdbook
|
||||
sed -i '/^multilingual/d' book.toml
|
||||
# Strip the legacy FA4 `fa` class from uudoc-generated platform icons
|
||||
# so mdbook 0.5's Font Awesome parser picks up the `fa-brands` family
|
||||
# instead of defaulting to `regular` and warning about linux/windows/apple.
|
||||
find src/utils -name '*.md' -exec sed -i 's|class="fa fa-brands |class="fa-brands |g' {} +
|
||||
mdbook build
|
||||
|
||||
- name: Build Coreutils Docs (translations)
|
||||
|
||||
Reference in New Issue
Block a user