0.2.2 • Published 10 months ago

@essif-lab/trrt v0.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

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:

FlagsDescriptionRequired
-c, --config \Path (including the filename) of the tool's (YAML) configuration fileNo
input \Glob pattern that specifies the set of (input) filesNo
-o, --output \(Root) directory for output files to be writtenYes
-s, --scopedir \Path of the scope directory where the SAF is locatedYes
-v, --vsntag \Default version to use when no version is set in term refNo
-int, --interpreter \Set interpreter to Alt syntaxNo
-con, --converter \Set converter to Markdown HTTP or ESIFF outputNo

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

0.2.2

10 months ago

0.2.1

11 months ago

0.2.0

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago

0.0.3

11 months ago

0.0.2

12 months ago