« Home

Configuration [guide-0009]

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

  1. "output-path", default value is "_build", where tr build command produces files for publish. You can run

    python3 -m http.server -d _build

    to view result, or upload it to host.

  2. "mode", default value is "release". When the value of "mode" is "dev", TR produces sourcemap.json in the output path, that enables Meta/Ctrl + E to edit the current page.