You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/Functions.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -352,20 +352,21 @@ If the tutorial should be tested on the console environment, you have to specify
352
352
### displayContent <aname="displayContent"></a>
353
353
#### parameter
354
354
1. The title of the step.
355
-
2. An array of json objects with files, content, or images to be rendered within the katacoda step. The use for this function is to display an image and some descriptive text. No Katacoda Syntax is allowed in the files or the content!
355
+
2. An array of json objects with files, content, or images to be rendered within the Katacoda step. The use for this function is to display an image and some descriptive text. No Katacoda syntax is allowed in the files or the content!
356
356
3. (Optional) Path to the current directory where the user is located (relative to the workspace directory). Only needed if the directory is changed within this step.
357
357
#### example
358
358
display("Step title", [{ "file": "files/description.asciidoc" }, { "content": "This is just plain content." }, { "image": "files/image.png" }])
359
359
360
360
#### Details
361
361
Available attributes in the json objects:
362
362
363
-
1. file: Path to a file whose content is to be displayed in the katacoda step (e.g. .asciidoc or .txt file). The file should be following the formating of asciidoc files.
364
-
2. content: Plain text to be displayed in the katacoda step. This Text should be following the formating of asciidoc files.
365
-
3. image: Path to an image to be displayed in the katacoda step.
363
+
1. file: Path to a file whose content is to be displayed in the Katacoda step (e.g. .asciidoc or .txt file). The file should be following the formating of asciidoc files.
364
+
2. content: Plain text to be displayed in the Katacoda step. This Text should be following the formating of asciidoc files.
365
+
3. image: Path to an image to be displayed in the Katacoda step.
366
+
366
367
367
368
#### Formatting rules for content and .asciidoc or .txt files.
368
-
* You can add headers to structure your text. The generated headers are shown in the examples below. The headers should fit into the overall structure of the generated wiki so level 1 header arent allowed, but the other header can be used at your judgement.
369
+
* You can add headers to structure your text. The generated headers are shown in the examples below. The headers should fit into the overall structure of the generated wiki so level 1 header are not allowed, but the other header can be used at your judgement.
369
370
* A list always needs an empty newline between the last row and the list.
0 commit comments