trrt 0.2.2
Install from the command line:
Learn more about npm packages
$ npm install @essif-lab/trrt@0.2.2
Install via package.json:
"@essif-lab/trrt": "0.2.2"
About this version
The Term Ref(erence) Resolution Tool (TRRT) takes files that contain so-called term refs and outputs a copy of these files in which these term refs are converted into so-called renderable refs, i.e. texts that can be further processed by tools such as GitHub pages, Docusaurus, etc. The result of this is that the rendered document contains markups that help readers to quickly find more explanations of the concept or other knowledge artifact that is being referenced. There is more information about
- the TRRT specifications
- overview of the TEv2 tools of which the TRRT is a part.
The TRRT will be used by terminology creators and curators to generate renderable refs. It can also be used in a CI/CD pipeline, allowing for resolution as a pre-processing step before building a static site or performing other deployment activities.
For resolution to work, the following artifacts need to be present (see the TEv2 architecture for an overview):
- The Scope Administration File (SAF);
- Access to (already existing) MRGs (created with the MRGTool) insofar as they contain terms that are to be referenced;
- The curated texts as specified here that document the terms (or other artifacts) that are to be resolved by the TRRT.
Install from the command line and make globally available
npm install @essif-lab/trrt -g
The behavior of the TRRT can be configured per call e.g. by a configuration file and/or command-line parameters. The command-line syntax is as follows:
trrt [ <paramlist> ] [ <globpattern> ]
The TRRT takes in the following parameters:
Flags | Description | Required |
---|---|---|
-c, --config <path> | Path (including the filename) of the tool's (YAML) configuration file | No |
input <globpattern> | Glob pattern that specifies the set of (input) files | No |
-o, --output <dir> | (Root) directory for output files to be written | Yes |
-s, --scopedir <path> | Path of the scope directory where the SAF is located | Yes |
-v, --vsntag <vsntag> | Default version to use when no version is set in term ref | No |
-int, --interpreter <type> | Set interpreter to Alt syntax | No |
-con, --converter <type> | Set converter to Markdown HTTP or ESIFF output | No |
See documentation for YAML file formatting guides. You can run the test demonstration with the command:
trrt -o __tests__/output -s src/test_files 'src/test_files/terminology/*'