Skip to content

Commit 0ca3a88

Browse files
Merge pull request #123 from GuentherJulian/feature/katacodaIntro
Feature/katacoda intro
2 parents 17ac944 + f40627a commit 0ca3a88

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

runners/katacoda/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export class Katacoda extends Runner {
5151
}
5252

5353
destroy(playbook: Playbook): void {
54-
fs.writeFileSync(this.outputPathTutorial + 'intro.md', playbook.description);
54+
let tutorialDirectoryName = path.basename(playbook.path);
55+
this.renderTemplate("intro.md", path.join(this.outputPathTutorial, "intro.md"), { description: playbook.description, tutorialPath: tutorialDirectoryName });
5556
fs.writeFileSync(this.outputPathTutorial + 'finish.md', "");
5657

5758
// create and configure required files for the setup process
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<%= description; %>
2+
3+
<% if(tutorialPath){ %>
4+
The definition of each step of this tutorial can be found at https://github.com/devonfw-tutorials/tutorials/tree/main/<%= tutorialPath; %>
5+
6+
Feel free to fix any errors you find yourself. You just need to create a pull request to the tutorials repository with your changes.
7+
You can find a description of what to look for when creating a pull request at the devonfw contribution guide: https://devonfw.com/website/pages/docs/CONTRIBUTING.asciidoc.html#contributing.asciidoc_pull-requests
8+
<% } %>

0 commit comments

Comments
 (0)