Add examples to docs

This commit is contained in:
Graham Esau 2019-12-26 21:34:08 +00:00
parent d67abbdbb1
commit f387a0ec56
11 changed files with 223 additions and 17 deletions

14
docs/_includes/example.md Normal file
View file

@ -0,0 +1,14 @@
{% capture input %}examples/{{ include.name }}.rs{% endcapture %}
{% capture output %}examples/{{ include.name }}.schema.json{% endcapture %}
```rust
{% include {{ input }} %}
```
<details>
<summary>Click to see the output JSON schema...</summary>
```json
{% include {{ output }} %}
```
</details>