You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.1 KiB

3 years ago
# swarmlab docs
3 years ago
A [swarmlab.io](http://www.swarmlab.io) sidecar container.
Docs is a multi-repository documentation site generator (Antora based)
[swarmlab.io docs](http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs/swarmlab/docs/index.html)
3 years ago
## Build from git
3 years ago
3 years ago
> git clone https://git.swarmlab.io:3000/docs/docs
3 years ago
> or
3 years ago
> git clone https://github.com/swarmlab-hybrid/docs.git
3 years ago
>
3 years ago
> cd docs
> ./build.sh
3 years ago
>
>
3 years ago
## Install services
>
> Run: ./install-appl.sh
>
>
3 years ago
## Workflow (Edit -> Preview -> push)
3 years ago
3 years ago
1. *Edit antora.yml* (This is the main file)
3 years ago
3 years ago
2. **Edit** modules/
3 years ago
3 years ago
3. You can use a local build first to try out your changes
3 years ago
3 years ago
>
> ./build-local.sh
>
3 years ago
3 years ago
4. **Preview** the results using your browser
3 years ago
3 years ago
>
> http://172.17.0.2:8080 # ip may be different
>
3 years ago
3 years ago
:information_source: When you are satisfied with result **push** them to the original git repository
3 years ago
3 years ago
>
> push.sh [push comment]
>
3 years ago
3 years ago
You HAVE to use a string litterall otherwise git will only register the first word!
3 years ago
3 years ago
>
> ./push.sh "my push comment"
>
3 years ago
3 years ago
## update antora
3 years ago
3 years ago
>
> ./antora-update.sh
>
3 years ago
## examples
3 years ago
>
> see README.examples-adoc.md
>
3 years ago