Skip to content

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

Term Reference Resolution Tool (TRRT)

Overview

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

Who will use the TRRT?

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.

What inputs does the TRRT need?

For resolution to work, the following artifacts need to be present (see the TEv2 architecture for an overview):

Installation

Install from the command line and make globally available npm install @essif-lab/trrt -g

Calling the Tool

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/*'

Details


Assets

  • trrt-0.2.2.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all