Browse Source

info

master
zeus 3 years ago
parent
commit
3aa606b000
  1. 2
      auto-complete.sh
  2. 10
      build.sh
  3. 5
      info/antora.yml
  4. BIN
      info/modules/ROOT/images/adhoc.png
  5. BIN
      info/modules/ROOT/images/swarmlab.png
  6. BIN
      info/modules/ROOT/images/up-1.png
  7. BIN
      info/modules/ROOT/images/up-2.png
  8. BIN
      info/modules/ROOT/images/up.png
  9. 1
      info/modules/ROOT/nav.adoc
  10. 18
      info/modules/ROOT/pages/index.adoc
  11. 4
      info/run/build-intro.sh
  12. 4
      info/run/build.sh
  13. 25
      info/site.yml

2
auto-complete.sh

@ -4,7 +4,7 @@ function libs()
{ {
if [ "$1" != "" ]; if [ "$1" != "" ];
then then
COMPREPLY=($(compgen -W "all xelatex-thesis infrastructure-as-code sidecar-firefox how-to-build-a-Swarmlab-service network-scanning network-adhoc raspi-docker tech-list faq sensor-node ssh-tunneling iptables poc-datacollector help" "${COMP_WORDS[$COMP_CWORD]}")) COMPREPLY=($(compgen -W "all allmicroservices xelatex-thesis infrastructure-as-code sidecar-firefox how-to-build-a-Swarmlab-service network-scanning network-adhoc raspi-docker tech-list faq sensor-node ssh-tunneling iptables poc-datacollector help" "${COMP_WORDS[$COMP_CWORD]}"))
fi fi
} }

10
build.sh

@ -31,6 +31,8 @@ usage ()
echo "" echo ""
echo -e " ${txtg}all:${NOCOLOR} All " echo -e " ${txtg}all:${NOCOLOR} All "
echo "" echo ""
echo -e " ${txtg}allmicroservices:${NOCOLOR} All microservices "
echo ""
echo -e " ${txtg}faq:${NOCOLOR} FAQ " echo -e " ${txtg}faq:${NOCOLOR} FAQ "
echo "" echo ""
echo -e " ${txtg}iptables:${NOCOLOR} This tutorial demonstrates, howto setup iptables & howto use it " echo -e " ${txtg}iptables:${NOCOLOR} This tutorial demonstrates, howto setup iptables & howto use it "
@ -93,6 +95,7 @@ docker pull hub.swarmlab.io:5480/antora
if [ $docdir == 'all' ];then if [ $docdir == 'all' ];then
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/build-all.sh'" 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/build-all.sh'"
else else
docker run -ti --name swarmlab-documentation -p 8080:8080 -v $PWD/$docdir:/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'" docker run -ti --name swarmlab-documentation -p 8080:8080 -v $PWD/$docdir:/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'"
fi fi
@ -155,6 +158,13 @@ do
COMMAND_CREATE=1 COMMAND_CREATE=1
;; ;;
allmicroservices)
DESC="allmicroservices" ;
build="build.sh" ;
docdir="info" ;
COMMAND_CREATE=1
;;
network-adhoc) network-adhoc)
DESC="network-adhoc" ; DESC="network-adhoc" ;
build="build.sh" ; build="build.sh" ;

5
info/antora.yml

@ -0,0 +1,5 @@
name: swarmlab_info
title: swarmlab_info
version: docs
nav:
- modules/ROOT/nav.adoc

BIN
info/modules/ROOT/images/adhoc.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

BIN
info/modules/ROOT/images/swarmlab.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
info/modules/ROOT/images/up-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 983 B

BIN
info/modules/ROOT/images/up-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 B

BIN
info/modules/ROOT/images/up.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 B

1
info/modules/ROOT/nav.adoc

@ -0,0 +1 @@
* xref:index.adoc[info]

18
info/modules/ROOT/pages/index.adoc

@ -0,0 +1,18 @@
= INFO!
== HowTo
[TIP]
====
Accept self-signed certificate!
self-signed certificates are good to go for testing purposes and for internal LAN-only services.
When you use VENUS
====

4
info/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

4
info/run/build.sh

@ -0,0 +1,4 @@
antora --fetch /antora/site.yml
antora /antora/site.yml
ifconfig
http-server build/site -c-1

25
info/site.yml

@ -0,0 +1,25 @@
site:
title: Swarmlab info
url: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs
start_page: swarmlab_info::index.adoc
content:
sources:
- url: https://git.swarmlab.io:3000/docs/Documentation.git
branches: master
start_path: info
- url: https://git.swarmlab.io:3000/swarmlab/microservice-xelatexthesis
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
Loading…
Cancel
Save