Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion runners/katacoda/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export class Katacoda extends Runner {
}

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

// create and configure required files for the setup process
Expand Down
8 changes: 8 additions & 0 deletions runners/katacoda/templates/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<%= description; %>

<% if(tutorialPath){ %>
The definition of each step of this tutorial can be found at https://github.com/devonfw-tutorials/tutorials/tree/main/<%= tutorialPath; %>

Feel free to fix any errors you find yourself. You just need to create a pull request to the tutorials repository with your changes.
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
<% } %>