Metadata-Version: 2.1
Name: dw-content-tools
Version: 0.1.0
Summary: 
Author: Martin Zugnoni
Author-email: mzugnoni@datawars.io
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: click (>=8.1.3,<9.0.0)
Description-Content-Type: text/markdown

# Content CLI Tools

## Module Repository Validator

```
Validates that a module repo structure and content is valid, based
on the following rules:

* metadata.yml exists
* metadata.yml is valid
    * validate JSON schema
* docker-compose.yml exists
* docker-compose.yml is valid
    * validate JSON schema
* english.md exists
* validating english.md:
    * pages:
        * unique IDs
        * all pages contain a valid ID
        * all pages have a name
    * all images referenced in md exist as static files
    * activities:
        * all activities have an unique `id`
        * all activities have `type` defined
        * input:
            * has required `correct-answer` tag
        * multiple-choice:
            * has required `answer` (many) tags
            * at least one answer is marked as `is-correct`
            * when more than one answer is correct, `widget` has to be `checkbox`
        * code:
            * `template` and `device` attrs are defined
            * has required `validation-code` tag
```

