Previously, the locations of trees as well as assets and theme directories were configured by means of command line arguments. As this has become a bit unwieldy, especially as many users have multiple projections of their forest, we have consolidated these options under a simple TOML configuration file whose location is the first argument to most forester commands. Here is an example configuration file:
# forest.toml
[forest]
trees = ["trees"]
assets = ["assets"]
theme = "theme"
root = "0001"
base_url = "https://www.jonmsterling.com"
It is common to have multiple configurations. For example, if you have “public” trees located in a specific directory, you can have an additional configuration:
# public.toml
[forest]
trees = ["trees/public"]
assets = ["assets"]
theme = "theme"
root = "0001"
base_url = "https://www.jonmsterling.com"
Both the assets and theme keys are displayed above with their default values, so they could be omitted. There is an additional stylesheet key that can be used to set the name of the XSL stylesheet used (the default is forest.xsl).
To build the forest, simply run: forester build forest.toml; other options can be used (see forester build --help), such as forester build forest.toml --dev.