- sync versions.json, xmake descriptors, generated headers and the CI TARGET_* values from the version npm just wrote
- generate the commit summary into CHANGELOG.md; human-readable notes are written manually on the Releases page
- drop CHANGELOG.zh-cn.md and the automatic release-notes step
- preserve CRLF in sync-versions so --check passes on Windows
- add monochrome GitHub and Gitee assets with light/dark CSS backgrounds
- replace the GitHub text link with icon links for both repositories
- fetch and cache repository star counts at build time and render them
beside the icons when available
- abbreviate counts of 1000 or more as `Nk` and separate the navbar
actions with vertical dividers
- move the version number from the navbar to a badge below the Home title
- harden the star script for cold checkouts: root-relative paths, request
timeouts, cache fallbacks and CI coverage
versions.json is now the single source of truth; scripts/sync-versions.mjs keeps xmake descriptors, tracked version headers and package.json in sync. Sub-library versions are aligned with the published 1.0.0 packages. C11 is set at the project level, and _GNU_SOURCE is defined on POSIX so strict C11 still exposes clock_gettime, strdup and recursive pthread mutexes.
Keep the sub-library archives separate by default so add_deps() can export each library's own links for tests and development builds. The merge-archive option restores the self-contained lcui library for release/Debian builds, and CI enables it only after tests pass. yutil-tests also needs C11 for its u8 string literals.
These layout tests need the generated global.css.h and the doc-viewer home-grid component, so they do not belong in the core lcui-tests binary. Move them to examples/doc-viewer/tests, keep their fixture with the tests, and generate the doc-viewer sources before running xmake test so a fresh checkout has global.css.h.
- Add examples/doc-viewer, an LCUI-based documentation viewer with an
MDX compiler pipeline that converts source MDX files into C/TSX
page components rendered by lcui build.
- Add zh-CN and en documentation for 5 widgets (anchor, button,
scrollarea, text, text-input), each with C/TSX/XML example variants
and widget-fields data.
- Add handbook and overview documentation.
Co-authored-by: Liu <lc-soft@live.cn>
- Use project-local clang-format from node_modules/.bin instead of system
PATH to avoid version mismatches between CI and development environments
- Print clang-format version and binary path in CI logs for debugging
- Add format:check script to package.json so `npm run format:check` works
- Add `needs: format` to build job so formatting failures block the build
and don't waste CI resources
Add actions/cache step covering xmake package and repository directories on both Linux and Windows runners. Cache key is keyed by runner OS, build mode (coverage on Linux, release on Windows) and the hashes of root and examples xmake-requires.lock so coverage and release artifacts do not pollute each other and examples deps share the same cache.
Bump actions/checkout to v4 with submodules: recursive (replacing the manual submodule update step), upload-artifact to v4 and download-artifact to v4.
Restructure the test infrastructure with these changes:
* Extend libctest with ctest_suite_t, ctest_parse_args, ctest_run_suites and CTEST_MAIN macro to standardize test entry points; support --grep / --grep= / --list / --interactive flags; add ctest-tests for self-tests.
* Regroup tests by lib boundary: sink unit tests into lib/<name>/tests/ with <lib>_<topic> entry function names, move fixtures into lib/<name>/tests/fixtures/, rename top-level tests/cases/ to tests/integration/ for cross-lib integration tests.
* Add tests/scenes/ for reusable widget tree builders shared by integration cases and visual preview binaries; add tests/previews/ with 4 diagnostic binaries (flex_layout, block_layout, widget_opacity, scrollbar).
* Rewrite all describe/equal description strings using 'should ...' style or noun topic names; drop redundant lcui_quit/lcui_main calls from integration cases.
* Integrate xmake test via add_tests(\default\) and a shared tests.runnable rule defined in the root xmake.lua; the rule wraps the test binary with drmemory (Windows) or valgrind (Linux) when option memcheck=y.
* Drop the lcui-tests aggregation: lcui-tests now contains only integration cases and scenes, not the union of lib tests. Use xmake test to run everything across libs.
* Fix .clang-format: InsertNewlineAtEndOfFile -> InsertNewlineAtEOF (correct key for clang-format 16+).
* Update AGENTS.md with the new test layout, naming rules, description style and run commands.
* Update CI to use xmake test and xmake f --memcheck=y instead of per-lib runs.
* add yutil
* add yutil to util.h
* remove util file that same as yutil's
* replace the old header file like '#include <LCUI/util/*>' with yutil's head file
* Replace the old UTIL module associated data structures and function call code
* change timer
* Replace the old UTIL module associated data structures and function call code
* fix
* fix compilation problems(RGB to YUTIL_TEST_RGB)
* turn some useless changes back to origin
* change YUTIL_TEST_RGB back to RGB and add lcui-util/xmake.lua include
* update github action
* update github action
* update github action
* change new yutil func name
* update xmake and change way to include yutil
* update include to <yutil.h>
* update list_for_each to for(list_each())
* fix
* add graph.h to test_*
* add #include <LCUI/graph.h>
* update yutil
* change timer func name and update submodule
* update submodules
* test strncpy
* turn useless code back origin
* fix lose RGB issue
* fix yutil charset
* update yutil
* update yutil
* add yutil_test instead of lcui-util test
* change timer func name style
Co-authored-by: 李梓豪 <yidianyiko@foxmail.com>