Skip to content

Commit

Permalink
Merge pull request #48 from progval/properties-v3
Browse files Browse the repository at this point in the history
Add v3 terms, and switch to native Hugo templating
  • Loading branch information
moranegg authored Jan 12, 2024
2 parents e71e162 + be4ffc6 commit 2899878
Show file tree
Hide file tree
Showing 8 changed files with 183 additions and 909 deletions.
17 changes: 15 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
all: data/crosswalk.json
all: data/crosswalk.json data/properties_description.json

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

# Convert crosswalk.csv to crosswalk.json so Hugo can parse it
data/crosswalk.json: data/crosswalk.csv
data/crosswalk.json: scripts/crosswalk_to_json.py data/crosswalk.csv
python3 scripts/crosswalk_to_json.py

# properties_description.csv file was only split off from crosswalks.csv starting with
# v2.1, so we can't download v2.0 itself. There were no major changes between the two,
# anyway.
data/properties_description/v2.0.csv:
wget https://github.com/codemeta/codemeta/raw/2.1/properties_description.csv -O $@

# Download properties descriptions for other versions
data/properties_description/v%.csv:
wget https://github.com/codemeta/codemeta/raw/$*/properties_description.csv -O $@

data/properties_description.json: scripts/properties_to_json.py data/properties_description/v2.0.csv data/properties_description/v3.0.csv
python3 scripts/properties_to_json.py
47 changes: 0 additions & 47 deletions content/terms.Rmd

This file was deleted.

Loading

0 comments on commit 2899878

Please sign in to comment.