Add examples to docs
This commit is contained in:
parent
d67abbdbb1
commit
f387a0ec56
11 changed files with 223 additions and 17 deletions
14
docs/_includes/example.md
Normal file
14
docs/_includes/example.md
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue