-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
109 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# Markdown Extensions | ||
|
||
This documentation comes with several markdown extensions that allow | ||
interactive elements and data pulled from the schema. | ||
|
||
## Schema Integration | ||
|
||
### `schema_string` | ||
|
||
Using a reference to a value in the JSON schema (without `$defs`) will embed that string | ||
into the markdown text. | ||
|
||
Example: | ||
|
||
``` | ||
{schema_string:shapes/graphic-element/description} | ||
``` | ||
|
||
Output: | ||
|
||
{schema_string:shapes/graphic-element/description} | ||
|
||
### `schema_link` | ||
|
||
Link to the relevant section in the formatted schema. | ||
|
||
Example: | ||
|
||
``` | ||
{schema_link:shapes/ellipse} | ||
``` | ||
|
||
Output: | ||
|
||
{schema_link:shapes/ellipse} | ||
|
||
### `schema_subtype_table` | ||
|
||
Used to list all the `ty` values for Layer / Shape etc. | ||
|
||
|
||
Example: | ||
|
||
``` | ||
{schema_subtype_table:layers/all-layers:ty} | ||
``` | ||
|
||
Output: | ||
|
||
{schema_subtype_table:layers/all-layers:ty} | ||
|
||
### `schema_object` | ||
|
||
Embeds a property table from the schema. | ||
|
||
Example: | ||
|
||
``` | ||
{schema_object:shapes/ellipse} | ||
``` | ||
|
||
Output: | ||
|
||
{schema_object:shapes/ellipse} | ||
|
||
### `schema_enum` | ||
|
||
Same as `schema_object` but for enumerations. | ||
|
||
Example: | ||
|
||
``` | ||
{schema_enum:fill-rule} | ||
``` | ||
|
||
Output: | ||
|
||
{schema_enum:fill-rule} | ||
|
||
### `json_file` | ||
|
||
Embed a JSON file into markdown, including syntax highlighting and reference links for JSON schema. | ||
|
||
Example: | ||
|
||
``` | ||
{json_file:lottie.schema.json} | ||
``` | ||
|
||
## Lottie Player | ||
|
||
### `<lottie>` | ||
|
||
Embeds a lottie into the document | ||
|
||
|
||
```xml | ||
<lottie | ||
src="static/logo.json" | ||
width="200" | ||
/> | ||
``` | ||
|
||
<lottie | ||
src="static/logo.json" | ||
width="200" | ||
/> |
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