forked from hedyorg/hedy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hopefully makes it (slightly) easier to translate all Hedy content. Visit: ``` http://<hedy>/translate/en/nl ``` (Or whatever pair of languages you want to translate) This PR uses content from the "adventure-mode" branch (without actually having the code that uses the data yet). Change Python YAML dependency from **PyYAML** to **ruamel.yaml** because it has better support for leaving the original file mostly in place. I am not proud of the code but it works and I wanted to get it out quickly.
- Loading branch information
Showing
15 changed files
with
1,977 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"title": "JSON Schema for Hedy Adventures", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"title": { | ||
"type": "string", | ||
"description": "Short title of the adventure" | ||
}, | ||
"subtitle": { | ||
"type": "string", | ||
"description": "Slightly longer introductory description of the adventure" | ||
}, | ||
"adventures": { | ||
"type": "object", | ||
"description": "Individual adventures, key/value map", | ||
"additionalProperties": { "$ref": "#/definitions/Adventure" } | ||
} | ||
}, | ||
"definitions": { | ||
"Adventure": { | ||
"type": "object", | ||
"properties": { | ||
"name": { "type": "string" }, | ||
"description": { "type": "string" }, | ||
"image": { "type": "string" }, | ||
"levels": { | ||
"type": "object", | ||
"additionalProperties": { "$ref": "#/definitions/Story" } | ||
} | ||
}, | ||
"required": ["name", "description", "levels"], | ||
"additionalProperties": false | ||
}, | ||
"Story": { | ||
"type": "object", | ||
"properties": { | ||
"intro_text": { "type": "string" }, | ||
"story_text": { "type": "string" }, | ||
"start_code": { "type": "string" } | ||
}, | ||
"required": ["start_code"], | ||
"additionalProperties": false | ||
}, | ||
"StoryCommand": { | ||
"type": "object", | ||
"properties": { | ||
"name": { "type": "string" }, | ||
"example": { "type": "string" }, | ||
"explanation": { "type": "string" }, | ||
"demo_code": { "type": "string" } | ||
}, | ||
"required": ["demo_code"], | ||
"additionalProperties": false | ||
} | ||
} | ||
} |
Oops, something went wrong.