zeus
3 years ago
5 changed files with 94 additions and 0 deletions
@ -0,0 +1,61 @@ |
|||||
|
# Swarmlab docs |
||||
|
## Application development in a distributed system |
||||
|
### Development of Distributed Systems from Design to Application |
||||
|
|
||||
|
---- |
||||
|
|
||||
|
# Build |
||||
|
|
||||
|
> git clone https://git.swarmlab.io:3000/docs/Documentation.git |
||||
|
> |
||||
|
> cd Documentation |
||||
|
> |
||||
|
|
||||
|
### On Error |
||||
|
|
||||
|
> |
||||
|
> Get https://hub.swarmlab.io:5480/v2/: x509: certificate |
||||
|
> |
||||
|
> Pulling ... |
||||
|
> |
||||
|
> ERROR: Get https://hub.swarmlab.io:5480/v2/: x509: certificate signed by unknown authority |
||||
|
> |
||||
|
|
||||
|
*run* |
||||
|
> |
||||
|
> ./0-get-certs.sh |
||||
|
> |
||||
|
|
||||
|
|
||||
|
### On Error response from daemon |
||||
|
|
||||
|
> |
||||
|
>docker: Error response from daemon: Get https://registry.vlabs.uniwa.gr:5080/v2/: dial tcp: lookup registry.vlabs.uniwa.gr on [::1]:53: read udp [::1]:56425->[::1]:53: read: connection refused. |
||||
|
> |
||||
|
>Try again! |
||||
|
> |
||||
|
|
||||
|
---- |
||||
|
|
||||
|
# Create a new document |
||||
|
|
||||
|
> |
||||
|
> ./init-docs.sh newdoc_1 |
||||
|
> |
||||
|
> cd ../newdoc_1 |
||||
|
> |
||||
|
> edit modules/ROOT/nav.adoc and modules/ROOT/pages/index.adoc |
||||
|
> |
||||
|
> 1. Test local |
||||
|
> |
||||
|
> ./build-local.sh |
||||
|
> |
||||
|
> Upload |
||||
|
> |
||||
|
> ./push.sh "add new" |
||||
|
> |
||||
|
> 2. Create from git |
||||
|
> |
||||
|
> ./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-local.sh'" |
@ -0,0 +1,4 @@ |
|||||
|
#antora --fetch /antora/site.yml |
||||
|
antora /antora/site.yml |
||||
|
ifconfig |
||||
|
http-server build/site -c-1 |
Loading…
Reference in new issue