Skip to content

Commit ad88c96

Browse files
committed
feat(Index): Added "code" block PoC
Signed-off-by: Jean-Baptiste Bianchi <[email protected]>
1 parent 8f2ed07 commit ad88c96

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

assets/scss/_styles_project.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.click-to-copy {
2+
float: right;
3+
}
4+
5+
.highlight {
6+
pre {
7+
padding: $spacer;
8+
}
9+
}

content/en/_index.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,59 @@ Define error handling strategies to manage and recover from workflow execution e
5858

5959
{{% /blocks/section %}}
6060

61+
62+
63+
<section class="row td-box td-box--5 td-box--height-auto">
64+
<div class="col">
65+
<div class="row">
66+
<div class="col">
67+
{{< tabpane text=true right=true >}}
68+
{{% tab header="**Examples**:" disabled=true /%}}
69+
{{% tab header="Minimal" lang="minimal" %}}
70+
```yaml
71+
document:
72+
dsl: 1.0.0-alpha1
73+
namespace: examples
74+
name: call-http-shorthand-endpoint
75+
version: 1.0.0-alpha1
76+
do:
77+
- getPet:
78+
call: http
79+
with:
80+
method: get
81+
endpoint: https://petstore.swagger.io/v2/pet/{petId}
82+
```
83+
{{% /tab %}}
84+
{{% tab header="Async API" lang="asyncapi" %}}
85+
```yaml
86+
document:
87+
dsl: 1.0.0-alpha1
88+
namespace: examples
89+
name: bearer-auth
90+
version: 1.0.0-alpha1
91+
do:
92+
- findPet:
93+
call: asyncapi
94+
with:
95+
document:
96+
uri: https://fake.com/docs/asyncapi.json
97+
operationRef: findPetsByStatus
98+
server: staging
99+
message: getPetByStatusQuery
100+
binding: http
101+
payload:
102+
petId: ${ .pet.id }
103+
authentication:
104+
bearer:
105+
token: ${ .token }
106+
```
107+
{{% /tab %}}
108+
{{< /tabpane >}}
109+
</div>
110+
</div>
111+
</div>
112+
</section>
113+
61114
{{% blocks/section %}}
62115
Reach out to us!
63116
{.h1 .text-center}

0 commit comments

Comments
 (0)