Skip to content

Commit 7928928

Browse files
added new step
1 parent b443015 commit 7928928

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Now you should have a ideo how to create your own tutorials.
2+
3+
There is also a way to test your tutorials on your local machine. For this you have to clone the tutorial-compiler repository.
4+
5+
The directory with the tutorial-compiler has to be located next to the directory with the tutorials repository.
6+
7+
So go back to the root directory and clone the repository.
8+
9+
`cd /root`{{execute T1}}
10+
11+
`git clone https://github.com/devonfw-tutorials/tutorial-compiler.git`{{execute T1}}
12+
13+
The tutorial-compiler needs typescript to be installed to work. So install typescript on your machine.
14+
15+
`npm install typescript -g`{{execute T1}}
16+
17+
Now navigate into the tutorial-compiler directory and install the needed dependencies.
18+
19+
`cd tutorial-compiler`{{execute T1}}
20+
21+
`npm install`{{execute T1}}
22+
23+
24+
# Test your tutorial locally
25+
To run the tutorial-compiler execute the following command:
26+
27+
`bash localBuildRun.sh -e katacoda -p myTutorial`{{execute T1}}
28+
29+
This will execute your newly create tutorial in the 'katacoda' environment. If you obmit the '-e' and '-p' paramter, all tutorials are executed in all environments.

tutorial-compiler/index.asciidoc

+5
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,8 @@ nextKatacodaStep("Alternative syntax", [{ "file": "files/alternativeSyntax.md" }
100100
--
101101
nextKatacodaStep("Push tutorial", [{ "file": "files/pushTutorial.md" }])
102102
--
103+
104+
[step]
105+
--
106+
nextKatacodaStep("Local testing", [{ "file": "files/localTesting.md" }])
107+
--

0 commit comments

Comments
 (0)