Skip to content

History / Troubleshooting

Revisions

  • Make wiki guidance easier to read with Vibekit writing rules Apply plain and terse writing across all wiki pages. Use sentence case headings, direct instructions and ordinary punctuation. Remove decorative status marks and bold labels from lists while retaining technical detail. Keep executable examples, API reference signatures and existing section anchors intact. Correct the contradictory advice about returning from a container block after checking the actual macro cleanup behavior. Constraint: Preserve page URLs, section links and executable examples. Scope-risk: Wiki prose and comments only. Tested: Wiki validator passed for 23 pages, 164 fenced examples and 248 internal links. Tested: Headless linker-wrapper probe confirmed return skips cleanup and continue closes the element. Tested: git diff --check. Not-tested: Browser rendering and the full library test suite.

    @rizukirr rizukirr committed Nov 30, 2026
  • Split build and web docs out and add an API reference so every public name is findable Building and Web (WASM) pages take the platform, cross-compile and Emscripten material that lived only in the README. API-Reference lists every public macro, function, type and constant with a link to its feature page. Fixes examples that did not compile or were wrong: CC_ID does not exist (now CLAY_ID), CC_LoadImage returns Texture2D, raylib Pattern 3 used a private font table and an undeclared renderer function, and the custom font limit is 15, not 16. Lifecycle gains a Quitting section built on raylib's SetExitKey. Code samples use the CC_ enum aliases instead of CLAY_ names, and Text documents its alignment values. Tested: corrected snippets compiled and ran against libccompose, every wiki link and section anchor resolves

    @rizukirr rizukirr committed Nov 30, 2026
  • Wiki: align with v0.0.1-alpha02 API — Flutter-style helpers, axis-tagged Align, renames

    @rizukirr rizukirr committed May 22, 2026
  • Wiki: tighten 4 follow-up nits (transitionState field, content-keyed cache, id-uniqueness phrasing)

    @rizukirr rizukirr committed May 22, 2026
  • Wiki audit: align with v0.0.1-alpha01 API, fix string-literal claim, document CC_RUN_LOOP / CC_Scroll / interning

    @rizukirr rizukirr committed May 22, 2026
  • docs: align wiki with current API surface and headless behavior - Document the new global text-color API (CC_LoadGlobalFontColor / CC_GetGlobalFontColor) in Lifecycle, Text, Architecture, and the Headless-Mode runtime table. - Drop references to the never-implemented TextN macro across Text, Scroll, Troubleshooting, Architecture, and Home; rewrite the Text page to describe Text()'s actual semantics (accepts any const char * via CC_StrIntern). - Add the missing .size field on CC_DividerOpts and replace the stale "no fixed cross-axis length" limitation with a working example. - Fix CC_SetBackground signature in Lifecycle (Clay_Color -> CC_Color) to match the public header. - Update Headless-Mode notes to reflect that CC_SetBackground, CC_LoadGlobalFontColor, CC_GetGlobalFontColor, and CC_GetGlobalFontId now store/return values (Clay carries them into the render-command stream regardless of the backend).

    @rizukirr rizukirr committed Apr 26, 2026
  • docs: document Spacer/Divider leaf macros New page covers the HSpacer/VSpacer/HDivider/VDivider API added in the main repo: why they are anonymous-id leaves (safe in loops), defaults, limitations (no fixed cross-axis length yet, no theme hook, no hover target). Containers ID-guidance gained a cross-ref, and Troubleshooting picked up a section for the recurring 'element with this ID was already previously declared' error that motivated the new macros.

    @rizukirr rizukirr committed Apr 15, 2026
  • docs: rewrite wiki — comprehensive coverage Migrates from the sparse per-field pages under docs/wiki/ to a structured, long-form wiki covering every piece of the public API: - Home landing page with quick start and navigation - Getting-Started: build on Linux/macOS/Windows, headless, first program - Lifecycle: full rundown of CC_Init/Begin/End/Shutdown, fonts, error handlers, window configuration - Containers: Column/Row/Box/Element unified, macro expansion, control-flow caveats, nesting - Text: Text vs TextN, font-id precedence, wrapping, alignment - Layout: sizing helpers, padding, childGap, childAlignment - Styling: backgrounds, corner radius, borders (incl. betweenChildren), images, aspect ratio - Interaction: Button, CC_Hovered, CC_Clicked, IMGUI query idiom, recipes (sidebar nav, toggle, pressed state), gotchas (new in 0.2) - Scroll & Clip, Floating: expanded examples (modals, dropdowns by id) - Headless-Mode: what changes at runtime, test patterns, Clay_SetPointerState-based simulated input - Architecture: layer diagram, macro expansion walkthrough, memory model, build targets, naming conventions - Troubleshooting: compile errors, Clay error codes, visual problems, build quirks - _Sidebar: GitHub wiki sidebar navigation

    @rizukirr rizukirr committed Apr 9, 2026