Same facts in fewer words across README, CLAUDE.md, CONTRIBUTING, DOCUMENTATION, FAQ, DEMO and NOTICE, and the claims that had drifted from the code brought back in line: - CI runs eleven console tests from tools/ci/tests.txt, plus the scripted uitest, skiptest and damagetest; the Tests table lists the last two. - Linux ARMv7 and RISC-V build on every pull request, emulated and allowed to fail, not only on master. - CONTRIBUTING runs the tests from tools/ci/tests.txt instead of an old list. - The showcase is about 4,600 lines and notepad about 410. - The shared library also ships as -macos-universal. - SDL's GPU API is built only with REAKTOR_SHADERS. - The architecture list names core/sdl and damage drawing. - CLAUDE.md: --shot also hides partial redraws; damagetest catches them. - PLAN.md is marked finished, with what has changed since. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3.4 KiB
Contributing
Pull requests are welcome, and so is an issue that says "this looks wrong" with a screenshot.
Getting started
git submodule update --init --recursive
./build.sh # build.ps1 on Windows
for t in $(cat tools/ci/tests.txt); do ./build/$t || break; done
tools/ci/tests.txt lists the console tests CI runs; sh tools/ci/uitest.sh build runs the scripted ones. ./build-wasm.sh builds the web target from the
same sources and catches what the native build lets through; run it before
sending anything. docs/DOCUMENTATION.md is the map:
read its Nuklear traps before touching
drawing code.
Conventions
- C99, portable, no compiler extensions. A platform subsystem goes in
platform/; a single platform fact goes behind_WIN32,__APPLE__,__linux__or__EMSCRIPTEN__where needed. - Around 79 columns, four-space indent, no tabs, American English.
- Few comments. One line, and only where removing it would invite a bug.
reaktor_prefixes anything crossing a translation unit; everything else isstatic.
Decisions of record
Binding unless you make the case for changing one.
- Submodules are read, never edited, never quoted. No value is copied out
of
external/; the app opens the file at run time. The only vendored source iscore/render/nk_sdl3_renderer.h, every deviation markedREAKTOR. The only bytes compiled in areREAKTOR_BUILTINS. - The stylesheet is the source of style. A color, radius, border or padding written as a C literal needs a reason beside it, such as a fallback for a sheet that failed to load.
- Permissive licenses only, MIT preferred. Record a dependency in
docs/NOTICE.md in the same change, from the project's own
license file. A vendored asset carries its terms in the tree;
assets/fonts/Aileron-Notice.txtis the shape to copy. - An optional feature is a module: an interface library, a
_nonetwin defining the same functions, and aREAKTOR_<NAME>option,ONby default. Off, a build draws the same pixels and writes the same--a11y-dump, except for what the module itself produces. - Nothing is drawn when nothing has changed. No timers, polling or unconditional repaints; mark what changed.
- Every asset goes through
reaktor_asset_load(): a name under the.reaktor-rootmarker, then the compiled-in copies, never the working directory. No network fetches. - No environment variables. An override is a command-line flag the
runtime strips from
argv.
Saying what you verified
In the pull request:
- that native and WebAssembly build and the tests pass;
- the accessibility dump before and after, if anything moved: run with
--a11y-dump <path>and diff the two; - a screenshot of a visible change, pinned with
--tab,--scrolland--themeand written by--shot.
The framebuffer proves a visual fix, not reasoning from the source that drew
it wrong. A performance claim needs a number from the Diagnostics page or
bench --no-vsync, and a claim against another framework needs
benchmarks/run.ps1; several plausible optimizations here measured worse.
Review
Automated review is a first pass. It finds a missing bounds check, not that a widget is drawn as it is because the alternative was tried and looked wrong. For a change to layout, styling or frame pacing, say what you tried and how it looked.