Skip to content

Commit

Permalink
feat: Migrate to the new template structure (#3)
Browse files Browse the repository at this point in the history
* feat: Migrate to the new template structure

* Add README
  • Loading branch information
fmvilas authored Mar 31, 2020
1 parent 84ff223 commit 04d960a
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .partials/content.md

This file was deleted.

14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Markdown template for the AsyncAPI Generator

## Usage

```
ag asyncapi.yaml @asyncapi/markdown-template -o output
```

If you don't have the AsyncAPI Generator installed, you can install it like this:

```
npm install -g @asyncapi/generator
```

File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions partials/content.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% include "partials/info.md" %}

{% if asyncapi.hasChannels() %}
{% include "partials/channels.md" %}
{% endif %}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion asyncapi.md → template/asyncapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
* [Channels](#channels)
{% endif %}

{% include ".partials/content.md" %}
{% include "partials/content.md" %}

0 comments on commit 04d960a

Please sign in to comment.