Configuration
Zet reads the configuration inside TOML's
.zet/zet.toml file. Empty zet.toml is created by running zet init
.
Configuration Example
[[notebooks]]
name = "main"
path = "content/0"
remote = "ssh://git@example.com/notebook.git"
[[notebooks]]
name = "journal"
path = "content/my journal"
remote = "ssh://git@example.com/journal.git"
Notebooks Array
Zet discovers all of managed notebooks by reading [[notebooks]]
array
entries. Order in which [[notebooks]]
are declared in zet.toml matters
for evaluating the default notebook.
It has the following keys:
name
(mandatory)
Name of the notebook which will be used in selectors to access it. It can be any string, but for ease of access it's preferabbly a short single word, all lower-case.
path
(mandatory)
Relative path to the root directory of notebook. path
is relative to the
$ZET_ROOT
, i.e. to the .zet directory.
remote
(optional)
Git URL used by zet sync
to automatically
initialize the notebook from remote repository. See the chapter about
synchronization.