By default, the configuration file is site.json
, in some tr
command you can config to use different configuration (read CLI --help
result to learn).
{ "domain": "your domain", "title": "your site title", "description": "your site description" }
Optional options are
"output-path"
, default value is"_build"
, wheretr build
command produces files for publish. You can runpython3 -m http.server -d _build
to view result, or upload it to host.
"mode"
, default value is"release"
, when the value is"dev"
.TR produces
sourcemap.json
in the output path, that enables Meta/Ctrl + E to edit the current page.