Browse Source

tamplate

master
zeus 3 years ago
parent
commit
dd6aebe51e
  1. 4
      CloudComputing_and_Services_Lab/antora.yml
  2. 2
      CloudComputing_and_Services_Lab/modules/ROOT/nav.adoc
  3. 2
      CloudComputing_and_Services_Lab/modules/ROOT/pages/index.adoc
  4. 6
      CloudComputing_and_Services_Lab/site.yml
  5. 11
      template/init-docs.sh

4
CloudComputing_and_Services_Lab/antora.yml

@ -1,6 +1,6 @@
name: swarmlab_cloud name: swarmlab_CloudComputing_and_Services_Lab
title: swarmlab_cloud title: swarmlab_CloudComputing_and_Services_Lab
version: docs version: docs
nav: nav:
- modules/ROOT/nav.adoc - modules/ROOT/nav.adoc

2
CloudComputing_and_Services_Lab/modules/ROOT/nav.adoc

@ -1 +1 @@
* xref:index.adoc[cloud] * xref:index.adoc[CloudComputing_and_Services_Lab]

2
CloudComputing_and_Services_Lab/modules/ROOT/pages/index.adoc

@ -1,5 +1,5 @@
= cloud = CloudComputing_and_Services_Lab
image::ROOT:swarmlab.png[swarmlab,150,float=right] image::ROOT:swarmlab.png[swarmlab,150,float=right]

6
CloudComputing_and_Services_Lab/site.yml

@ -1,12 +1,12 @@
site: site:
title: Swarmlab cloud title: Swarmlab CloudComputing_and_Services_Lab
url: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs url: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs
start_page: swarmlab_cloud::index.adoc start_page: swarmlab_CloudComputing_and_Services_Lab::index.adoc
content: content:
sources: sources:
- url: https://git.swarmlab.io:3000/docs/Documentation.git - url: https://git.swarmlab.io:3000/docs/Documentation.git
branches: master branches: master
start_path: docs start_path: CloudComputing_and_Services_Lab
ui: ui:
bundle: bundle:
url: https://git.swarmlab.io:3000/docs/docs/raw/branch/master/ui-bundle.zip url: https://git.swarmlab.io:3000/docs/docs/raw/branch/master/ui-bundle.zip

11
template/init-docs.sh

@ -3,8 +3,6 @@
#SERVICE_URL=https://git.swarmlab.io:3000/docs/Documentation.git #SERVICE_URL=https://git.swarmlab.io:3000/docs/Documentation.git
#SERVICE_NAME=cloud
#SERVICE_NAME_MENOU=cloud
SOURCE="${BASH_SOURCE[0]}" SOURCE="${BASH_SOURCE[0]}"
@ -137,9 +135,8 @@ if [[ ! -d "${dname}/modules" || ! -d "${dname}/supplemental-ui" || ! -d "${dnam
exit 1 exit 1
fi fi
exit 1
cat << EOF > $dname/antora.yml cat << EOF > ${dname}/antora.yml
name: swarmlab_${SERVICE_NAME} name: swarmlab_${SERVICE_NAME}
title: swarmlab_${SERVICE_NAME} title: swarmlab_${SERVICE_NAME}
@ -148,7 +145,7 @@ cat << EOF > $dname/antora.yml
- modules/ROOT/nav.adoc - modules/ROOT/nav.adoc
EOF EOF
cat << EOF > $dname/site.yml cat << EOF > ${dname}/site.yml
site: site:
title: Swarmlab ${SERVICE_NAME} title: Swarmlab ${SERVICE_NAME}
url: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs url: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs
@ -171,11 +168,11 @@ asciidoc:
- asciidoctor-plantuml - asciidoctor-plantuml
EOF EOF
cat << EOF > $dname/modules/ROOT/nav.adoc cat << EOF > ${dname}/modules/ROOT/nav.adoc
* xref:index.adoc[${SERVICE_NAME_MENOU}] * xref:index.adoc[${SERVICE_NAME_MENOU}]
EOF EOF
cat << EOF > $dname/modules/ROOT/pages/index.adoc cat << EOF > ${dname}/modules/ROOT/pages/index.adoc
= ${SERVICE_NAME_MENOU} = ${SERVICE_NAME_MENOU}

Loading…
Cancel
Save