Build and test
Build
Outliner needs Zig 0.17.0 for the build of ztk, and glslc on Linux for its Vulkan renderer. deps.lock has the commit of ztk. ztk has the commit of ztcl in its build.zig.zon.
tools/build.sh # this computer: dist/outliner
tools/build.sh x86_64-linux aarch64-linux # other targets
ZTK=/path/to/ztk tools/build.sh # with a ztk program that exists
The targets are x86_64-linux, aarch64-linux, x86_64-macos, aarch64-macos, and x86_64-windows. Each one builds on Linux. On a computer with little memory, set ZIG_JOBS=2.
Run from the source
ztk --allow clock,random,interp,package,env,event src/main.tcl ~/Documents/my-graph
Tests
ztk --headless --allow clock,random,interp,package,thread tests/run.tcl # the library
ztk --headless --allow clock,random,interp,package,thread tests/run.tcl query # one file
tools/uitest.sh tests/ui-edit.tcl ztk # the editor
tools/uitest.sh tests/ui-plugin.tcl ztk # the plugin panel
tests/t-*.tcltest the files ofsrc/libon the sample graphtests/graph.tests/t-fmt.tclchecks that each sample file has the same bytes after parse and save.tests/ui-*.tclrun inside the app with the headless backend. They send keys and clicks withztk::injectand check the graph.tools/shots.tclmakes the images ofdocs/screens:SHOTS=$PWD/docs/screens tools/uitest.sh tools/shots.tcl ztk.tools/perf.tclmeasures the speed. Speed has the numbers.
A test never opens a window: the headless backend renders to memory.
Writing
Code comments, commit messages, and docs use short sentences in the present tense, with one name for one thing. A commit subject has fewer than 72 characters and no attribution line.
License of contributions
Outliner is AGPL-3.0. Code from Logseq keeps its copyright notice, and the file names the module of Logseq that it follows. Do not copy code of Outliner into ztcl, ztk, or another project with a different license.