Skip to content

Commit 2899878

Browse files
authored
Merge pull request #48 from progval/properties-v3
Add v3 terms, and switch to native Hugo templating
2 parents e71e162 + be4ffc6 commit 2899878

File tree

8 files changed

+183
-909
lines changed

8 files changed

+183
-909
lines changed

Makefile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1-
all: data/crosswalk.json
1+
all: data/crosswalk.json data/properties_description.json
22

33
# Download the latest crosswalk
44
data/crosswalk.csv:
55
wget https://github.com/codemeta/codemeta/raw/master/crosswalk.csv -O data/crosswalk.csv
66

77
# Convert crosswalk.csv to crosswalk.json so Hugo can parse it
8-
data/crosswalk.json: data/crosswalk.csv
8+
data/crosswalk.json: scripts/crosswalk_to_json.py data/crosswalk.csv
99
python3 scripts/crosswalk_to_json.py
10+
11+
# properties_description.csv file was only split off from crosswalks.csv starting with
12+
# v2.1, so we can't download v2.0 itself. There were no major changes between the two,
13+
# anyway.
14+
data/properties_description/v2.0.csv:
15+
wget https://github.com/codemeta/codemeta/raw/2.1/properties_description.csv -O $@
16+
17+
# Download properties descriptions for other versions
18+
data/properties_description/v%.csv:
19+
wget https://github.com/codemeta/codemeta/raw/$*/properties_description.csv -O $@
20+
21+
data/properties_description.json: scripts/properties_to_json.py data/properties_description/v2.0.csv data/properties_description/v3.0.csv
22+
python3 scripts/properties_to_json.py

content/terms.Rmd

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)