diff --git a/CloudComputing_and_Services_Lab/antora.yml b/CloudComputing_and_Services_Lab/antora.yml new file mode 100644 index 0000000..d6a028a --- /dev/null +++ b/CloudComputing_and_Services_Lab/antora.yml @@ -0,0 +1,6 @@ + + name: swarmlab_cloud + title: swarmlab_cloud + version: docs + nav: + - modules/ROOT/nav.adoc diff --git a/CloudComputing_and_Services_Lab/build.sh b/CloudComputing_and_Services_Lab/build.sh new file mode 100755 index 0000000..9c1036c --- /dev/null +++ b/CloudComputing_and_Services_Lab/build.sh @@ -0,0 +1,5 @@ +docker stop swarmlab-documentation +docker container rm swarmlab-documentation +docker pull hub.swarmlab.io:5480/antora + +docker run -ti --name swarmlab-documentation -p 8080:8080 -v $PWD/:/antora -v $PWD/supplemental-ui:/antora/supplemental-ui hub.swarmlab.io:5480/antora /bin/sh -c "DOCSEARCH_ENABLED=true DOCSEARCH_ENGINE=lunr DOCSEARCH_INDEX_VERSION=latest NODE_PATH=/usr/local/lib/node_modules:\$NODE_PATH exec sh -c '/antora/run/build.sh'" diff --git a/CloudComputing_and_Services_Lab/modules/ROOT/images/adhoc.png b/CloudComputing_and_Services_Lab/modules/ROOT/images/adhoc.png new file mode 100644 index 0000000..6256678 Binary files /dev/null and b/CloudComputing_and_Services_Lab/modules/ROOT/images/adhoc.png differ diff --git a/CloudComputing_and_Services_Lab/modules/ROOT/images/swarmlab.png b/CloudComputing_and_Services_Lab/modules/ROOT/images/swarmlab.png new file mode 100644 index 0000000..d94ea42 Binary files /dev/null and b/CloudComputing_and_Services_Lab/modules/ROOT/images/swarmlab.png differ diff --git a/CloudComputing_and_Services_Lab/modules/ROOT/nav.adoc b/CloudComputing_and_Services_Lab/modules/ROOT/nav.adoc new file mode 100644 index 0000000..4245037 --- /dev/null +++ b/CloudComputing_and_Services_Lab/modules/ROOT/nav.adoc @@ -0,0 +1 @@ +* xref:index.adoc[cloud] diff --git a/CloudComputing_and_Services_Lab/modules/ROOT/pages/index.adoc b/CloudComputing_and_Services_Lab/modules/ROOT/pages/index.adoc new file mode 100644 index 0000000..e44ce24 --- /dev/null +++ b/CloudComputing_and_Services_Lab/modules/ROOT/pages/index.adoc @@ -0,0 +1,11 @@ + += cloud + +image::ROOT:swarmlab.png[swarmlab,150,float=right] + +This tutorial demonstrates: *a.* howto create a Swarmlab.io doc wit asciidoc + +== Intro + +*intro* here + diff --git a/CloudComputing_and_Services_Lab/run/build-intro.sh b/CloudComputing_and_Services_Lab/run/build-intro.sh new file mode 100755 index 0000000..af181d8 --- /dev/null +++ b/CloudComputing_and_Services_Lab/run/build-intro.sh @@ -0,0 +1,4 @@ +antora --fetch /antora/site-intro.yml +antora /antora/site-intro.yml +ifconfig +http-server build/site -c-1 diff --git a/CloudComputing_and_Services_Lab/run/build.sh b/CloudComputing_and_Services_Lab/run/build.sh new file mode 100755 index 0000000..7122c21 --- /dev/null +++ b/CloudComputing_and_Services_Lab/run/build.sh @@ -0,0 +1,4 @@ +antora --fetch /antora/site.yml +antora /antora/site.yml +ifconfig +http-server build/site -c-1 diff --git a/CloudComputing_and_Services_Lab/site.yml b/CloudComputing_and_Services_Lab/site.yml new file mode 100644 index 0000000..4c5b613 --- /dev/null +++ b/CloudComputing_and_Services_Lab/site.yml @@ -0,0 +1,20 @@ +site: + title: Swarmlab cloud + url: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs + start_page: swarmlab_cloud::index.adoc +content: + sources: + - url: https://git.swarmlab.io:3000/docs/Documentation.git + branches: master + start_path: docs +ui: + bundle: + url: https://git.swarmlab.io:3000/docs/docs/raw/branch/master/ui-bundle.zip + snapshot: true + supplemental_files: ./supplemental-ui +asciidoc: + attributes: + :plantuml-server-url: http://www.plantuml.com/plantuml + extensions: + - '@djencks/asciidoctor-mathjax' + - asciidoctor-plantuml