From 26253599a3ed8afb993575c74c843a4ffd068c61 Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 21 Aug 2020 17:07:01 +0300 Subject: [PATCH] howto --- swarmlab/main.adoc | 58 ++++++++++-- swarmlab/main.adoc.html | 195 +++++++++++++++++++++++++++++++++++++++- 2 files changed, 244 insertions(+), 9 deletions(-) diff --git a/swarmlab/main.adoc b/swarmlab/main.adoc index f5eb722..69951d5 100644 --- a/swarmlab/main.adoc +++ b/swarmlab/main.adoc @@ -326,10 +326,6 @@ image::images/llo/llo-try.png[] === Create Learning Object Notebook - - - - ==== Main Options image::images/llo/llo-create.png[] @@ -339,6 +335,7 @@ image::images/llo/llo-create.png[] - *"Bootstrap LearningObjects"* - Create your LLO - *"How to Contribute"* +==== Publish .Creative Commons [NOTE] @@ -351,7 +348,6 @@ Creative Commons is an international nonprofit that offers flexible copyright ma ==== -==== Publish image::images/llo/llo-publish.png[] @@ -359,6 +355,58 @@ image::images/llo/llo-publish.png[] image::images/llo/llo-bootstrap.png[] +Learning Objects Notebooks Based on the following structure: + +[source,yaml] +---- +--- # Programming language + name: "test" // <1> + author: "zeus" + intro: "intro" // <2> + base_url: "https://git.swarmlab.io:3000/labs/examples-mpi2/raw/branch/master" // <3> + 0_netstat: // <4> + display_name: "netstat" // <5> + swarmlabservice: "os2" // <6> + info: + file: "0_netstat/info" // <7> + code: + lang: "bash" // <8> + exec: "/bin/bash" // <9> + file: "0_netstat/code" // <10> + options: "" // <11> + mimetype: "bash" // <12> + output: + log: "console" // <13> + mimetype: "bash" + challenge: // <14> + question: "0_netstat/q-info" + codehelp: "0_netstat/codehelp" + codeanswer: "0_netstat/codeanswer" + mimetype: "bash" + points: "1" // <15> + output: + log: "ascii" +---- +<1> LabLearningObject Name +<2> Here you can describe your LLO. Describe what students should know or be able to do at the end of the course that they couldn't do before! +<3> The ''base url'' field is the landing page of your LLO. +<4> Code spec +<5> Task Name +<6> A Swarmlab service is an dockerized microservice. It receives code snippets to execute, runs these code snippets, and returns the result and output of the execution. +<7> Task info. Here you can describe your Task +<8> Set the programming language! +<9> The full path of the executable +<10> Here you can add the code snippet to be executed. ( Using the ''Give It A Try'' option you can test your Code.) +<11> Exec Options +<12> Code block syntax highlighting +<13> Output: Console, file +<14> Challenge spec [Optional] +<15> Difficulty - 1 beginer, 2 intermediate, 3 advanced, 4 expert, 5 guru + + + + + == Get Involved Swarmlab.io is a open source project born to support interactive Virtual Labs and interactive Learning Objects across all programming languages and systems. i diff --git a/swarmlab/main.adoc.html b/swarmlab/main.adoc.html index 97f42c0..789d939 100644 --- a/swarmlab/main.adoc.html +++ b/swarmlab/main.adoc.html @@ -1131,6 +1131,9 @@ Bootstraping is final and no further edits are allowed!! + +
+

4.3.2. Publish

@@ -1150,9 +1153,6 @@ Bootstraping is final and no further edits are allowed!!
-
-
-

4.3.2. Publish

llo publish @@ -1166,6 +1166,104 @@ Bootstraping is final and no further edits are allowed!! llo bootstrap
+
+

Learning Objects Notebooks Based on the following structure:

+
+
+
+
--- # Programming language
+  name: "test" (1)
+  author: "zeus"
+  intro: "intro" (2)
+  base_url: "https://git.swarmlab.io:3000/labs/examples-mpi2/raw/branch/master" (3)
+  0_netstat:  (4)
+    display_name: "netstat" (5)
+    swarmlabservice: "os2" //  (6)
+    info:
+      file: "0_netstat/info" (7)
+    code:
+      lang: "bash" (8)
+      exec: "/bin/bash" (9)
+      file: "0_netstat/code" (10)
+      options: "" (11)
+      mimetype: "bash" (12)
+      output:
+        log: "console" (13)
+        mimetype: "bash"
+    challenge: (14)
+      question: "0_netstat/q-info"
+      codehelp: "0_netstat/codehelp"
+      codeanswer: "0_netstat/codeanswer"
+      mimetype: "bash"
+      points: "1" (15)
+      output:
+        log: "ascii"
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
1LabLearningObject Name
2Here you can describe your LLO. Describe what students should know or be able to do at the end of the course that they couldn’t do before!
3The ''base url'' field is the landing page of your LLO.
4Code spec
5Task Name
6A Swarmlab service is an dockerized microservice. It receives code snippets to execute, runs these code snippets, and returns the result and output of the execution.
7Task info. Here you can describe your Task
8Set the programming language!
9The full path of the executable
10Here you can add the code snippet to be executed. ( Using the ''Give It A Try'' option you can test your Code.)
11Exec Options
12Code block syntax highlighting
13Output: Console, file
14Challenge spec [Optional]
15Difficulty - 1 beginer, 2 intermediate, 3 advanced, 4 expert, 5 guru
+
@@ -1199,8 +1297,97 @@ Bootstraping is final and no further edits are allowed!! + \ No newline at end of file