Skip to content

Commit 01ca91f

Browse files
committed
add headings
1 parent 58be701 commit 01ca91f

File tree

1 file changed

+8
-0
lines changed
  • src/content/docs/style-guide/components

1 file changed

+8
-0
lines changed

src/content/docs/style-guide/components/code.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ index_name = "tutorial-index"
8585
If you add the `playground` option to the opening code fence for a Worker example, it will
8686
add a "Run Worker in Playground" link that will take the user to the [Worker's playground](/workers/playground/)
8787

88+
### Live demo
89+
8890
```js playground
8991
export default {
9092
fetch() {
@@ -93,6 +95,8 @@ export default {
9395
};
9496
```
9597

98+
### How to use
99+
96100
````mdx "playground"
97101
```js playground
98102
export default {
@@ -108,6 +112,8 @@ export default {
108112
If you add the `graphql-api-explorer` option to the opening code fence for a `graphql` code block, it will
109113
add a "Run in GraphQL API Explorer" link that will take the user to the [GraphQL API explorer](https://graphql.cloudflare.com/explorer).
110114

115+
### Live demo
116+
111117
```graphql graphql-api-explorer title="A GraphQL query"
112118
query ASingleDatasetExample($zoneTag: string, $start: Time, $end: Time) {
113119
viewer {
@@ -126,6 +132,8 @@ query ASingleDatasetExample($zoneTag: string, $start: Time, $end: Time) {
126132
}
127133
```
128134

135+
### How to use
136+
129137
````mdx "graphql-api-explorer"
130138
```graphql graphql-api-explorer title="A GraphQL query"
131139
query ASingleDatasetExample($zoneTag: string, $start: Time, $end: Time) {

0 commit comments

Comments
 (0)