Skip to content

Commit ff6b76f

Browse files
authored
Consolidate game data into data/ with JSON Schema validation (#17)
* add json_schemer gem for schema validation * add consolidated data directory with schemas * add migration and validation scripts * update build scripts to read from data/ * remove old content json and update config * use integer comparison for armor skill amounts in template * regenerate search index from new data structure
1 parent d2e9156 commit ff6b76f

81 files changed

Lines changed: 148549 additions & 149936 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Generated weapon pages (to avoid polluting the repository)
1+
.DS_Store
2+
3+
# Generated weapon/armor/monster/decoration pages
24
content/blacksmith/**/*.md
35
!content/blacksmith/**/_index.md
46
content/armorsmith/**/*.md

‎Gemfile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
source "https://rubygems.org"
44

55
gem "toml", "~> 0.3.0"
6+
gem "json_schemer", "~> 2.5"

‎Gemfile.lock‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4+
bigdecimal (4.1.2)
5+
hana (1.3.7)
6+
json_schemer (2.5.0)
7+
bigdecimal
8+
hana (~> 1.3)
9+
regexp_parser (~> 2.0)
10+
simpleidn (~> 0.2)
411
parslet (2.0.0)
12+
regexp_parser (2.12.0)
13+
simpleidn (0.2.3)
514
toml (0.3.0)
615
parslet (>= 1.8.0, < 3.0.0)
716

@@ -11,6 +20,7 @@ PLATFORMS
1120
x86_64-linux
1221

1322
DEPENDENCIES
23+
json_schemer (~> 2.5)
1424
toml (~> 0.3.0)
1525

1626
BUNDLED WITH

‎config.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ compile_sass = true
1919
# copied over to the `public` directory.
2020
# Example:
2121
# ignored_content = ["*.{graphml,xlsx}", "temp.*", "**/build_folder"]
22-
ignored_content = ["*-crafting.json", "*-source.json"]
22+
ignored_content = ["*-source.json"]
2323

2424
# Whether to build a search index to be used later on by a JavaScript library
2525
build_search_index = true

0 commit comments

Comments
 (0)