Skip to content

Commit f53f0db

Browse files
authored
Specify supported Node versions (#196)
2 parents b3fe7fe + 5c59db1 commit f53f0db

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

content/collections/tutorial/create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ By the end, you'll have a working collection that tracks changes to a service's
1414

1515
## Prerequisites
1616

17-
- [Node.js](https://nodejs.org/en) is installed on your system.
17+
- [Node.js](https://nodejs.org/en) (version {{< engine-package key="engines.node" >}}) is installed on your system.
1818
- You have basic familiarity with the command line.
1919
- You know how to use a text editor.
2020

content/terms/how-to/track-terms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Having understood briefly how a declaration is structured in JSON format, we nee
1616

1717
In order to add declarations:
1818

19-
1. You need to have [Node.js](https://nodejs.org/en/) installed on your machine. If you don't have it, you can download it from the official website [here](https://nodejs.org/en/download/).
19+
1. You need to have [Node.js](https://nodejs.org/en/) (version {{< engine-package key="engines.node" >}}) installed on your machine. If you don't have it, you can download it from the official website [here](https://nodejs.org/en/download/).
2020
2. You need to have git installed on your machine. If you don't have it, you can download it from the official website [here](https://git-scm.com/downloads).
2121

2222
## Adding a declaration

content/terms/tutorial/track.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ By the end, you'll have tracked a service's privacy policy. You will also have a
1212

1313
## Prerequisites
1414

15-
- [Node.js](https://nodejs.org/en) is installed on your system.
15+
- [Node.js](https://nodejs.org/en) (version {{< engine-package key="engines.node" >}}) is installed on your system.
1616
- You have basic familiarity with the command line.
1717
- You have basic familiarity with HTML and CSS selectors.
1818
- You know how to use a text editor.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{ $enginePackage := readFile "node_modules/@opentermsarchive/engine/package.json" | unmarshal }}
2+
{{ $key := .Get "key" }}
3+
4+
{{ $value := $enginePackage }}
5+
{{ range split $key "." }}
6+
{{ $value = index $value . }}
7+
{{ end }}
8+
9+
{{- if $value -}}
10+
{{- $value -}}
11+
{{- else -}}
12+
{{- warnf "Key '%s' not found in engine package.json" $key -}}
13+
{{- end -}}

0 commit comments

Comments
 (0)