forked from asyncapi/markdown-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: asyncapi-asciidoctor-template initial conversion from markdown
- Loading branch information
1 parent
d4da349
commit 6b7f6a3
Showing
26 changed files
with
279 additions
and
383 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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,13 @@ | ||
{% from "./channel.adoc" import channel %} | ||
|
||
{%- if asyncapi.info().ext('x-channel-label') -%} | ||
{%- set channelsLabel = asyncapi.info().ext('x-channel-label') + 's' -%} | ||
{%- else -%} | ||
{%- set channelsLabel = 'Channels' -%} | ||
{%- endif -%} | ||
|
||
== {{channelsLabel}} | ||
|
||
{% for channelName, chan in asyncapi.channels() -%} | ||
{{ channel(chan, channelName) }} | ||
{% endfor -%} |
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
{% include "partials/info.adoc" %} | ||
|
||
{% if asyncapi.hasChannels() -%} | ||
{% include "partials/channels.adoc" %} | ||
{% endif -%} |
This file was deleted.
Oops, something went wrong.
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,67 @@ | ||
//{% if asyncapi.info().termsOfService() %} | ||
[#termsOfService] | ||
== Terms of service | ||
[{{asyncapi.info().termsOfService()}}]({{asyncapi.info().termsOfService()}}) | ||
//{% endif %} | ||
//{% if asyncapi.hasServers() %} | ||
|
||
[#servers] | ||
== Servers | ||
|
||
[cols=",,",options="header",separator="¦"] | ||
|=== | ||
¦URL ¦Protocol ¦Description | ||
|
||
//{% for serverName, server in asyncapi.servers() %} | ||
¦{{server.url()}} ¦{{server.protocol()}}{% if server.protocolVersion() %}{{server.protocolVersion()}}{% endif %} ¦ {{server.description() | safe}} | ||
|
||
// {% if server.variables() and server.variables()[0] is defined %} | ||
3+a¦ | ||
.URL Variables | ||
[%collapsible] | ||
==== | ||
[cols=",,,",options="header",] | ||
!=== | ||
!Name !Default value !Possible values !Description | ||
// {% for varName, var in server.variables() %} | ||
!{{varName}} | ||
! {%- if var.hasDefaultValue() %} | ||
{{var.defaultValue()}} | ||
{% else %} | ||
_None_ | ||
{% endif %} | ||
a! {%- if var.hasAllowedValues() %} | ||
{%- for value in var.allowedValues() -%} | ||
* {{value}} | ||
{%- endfor -%} | ||
{% else %} | ||
_Any_ | ||
{% endif -%} | ||
!{{ var.description() | safe }} | ||
// {% endfor %} | ||
!=== | ||
==== | ||
// {% endif %} | ||
|
||
|
||
|
||
// {% if server.security() %} | ||
3+a¦ | ||
.Security Requirements | ||
[%collapsible] | ||
==== | ||
[cols=",,,,,",options="header",] | ||
!=== | ||
!Type !In !Name !Scheme !Format !Description | ||
// {%- for security in server.security() %} | ||
// {% set def = asyncapi.components().securityScheme(security.json() | keys | head ) %} | ||
!{{def.type()}} !{{def.in()}} !{{def.name()}} !{{def.scheme()}} !{{def.bearerFormat()}} !{{def.description() | markdown2html | safe }} | ||
|
||
// {% endfor %} | ||
!=== | ||
// {% endif %} | ||
//{%- endfor %} | ||
|
||
|
||
|=== | ||
//{% endif %} |
Oops, something went wrong.