Outliner

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

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.