How To Resolve TermRefs
Resolving TermRefs consists of finding them in the various files, and replacing them with a so-called renderable ref, i.e., a series of characters that, when rendered, have particular characteristics. Typically, such characteristcs are that they stand out from the adjacent texts, that they can be clicked on to navigate to the page where they are documented, and that they have a popup text that specifies their definitions.
What a particular renderable ref would actually look like can be customized by creating and using so-called converters.
# use this command in a GitHub Action for actual deployment
trrt -c "tev2-config.yaml -f"
# use this command for local testing
trrt -c "tev2-config.yaml" -o "test-output"
Notes:
-
We can use multiple configuration files. Each configuration file has a particular purpose. Using those makes it easer to generate stuff in different contexts, such as the local (testing) context of the GitHub (deployment) context.
-
You can override the parameters in the configuration file by providing them yourself on the command-line. The list of parameters is documented in the TRRT documentation.
-
The
-f
flag is used in the deployment case, to prevent the tool from testing whether it is overwriting the files that it is processing with the results thereof. -
The
-o "test-output"
argument is used in the local (testing) case to make sure that the results of processing are put at a location (i.e.: in/docs/testoutput
) different from where the sources are kept so that you do not inadvertently overwrite these s -
Additional documentation on the TRRT can be found in its specifications.