From 18b4770ad57c3c27d9cba866833d0cd0a9701111 Mon Sep 17 00:00:00 2001 From: zeus Date: Wed, 23 Feb 2022 21:37:55 +0200 Subject: [PATCH] test template --- .../modules/ROOT/pages/index.adoc | 1 + CloudComputing_Lab/run/build-local.sh | 2 +- CloudComputing_Lab/site-local.yml | 20 ++++++++++++++ template/README.md | 3 +++ template/init-docs.sh | 27 +++++++++++++++++++ template/run/build-local.sh | 2 +- 6 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 CloudComputing_Lab/site-local.yml diff --git a/CloudComputing_Lab/modules/ROOT/pages/index.adoc b/CloudComputing_Lab/modules/ROOT/pages/index.adoc index 460c0f4..3b4b261 100644 --- a/CloudComputing_Lab/modules/ROOT/pages/index.adoc +++ b/CloudComputing_Lab/modules/ROOT/pages/index.adoc @@ -9,3 +9,4 @@ This tutorial demonstrates: *a.* howto create a Swarmlab.io doc wit asciidoc *intro* here +vvvvvvvvv diff --git a/CloudComputing_Lab/run/build-local.sh b/CloudComputing_Lab/run/build-local.sh index 602c0cd..22bcf21 100755 --- a/CloudComputing_Lab/run/build-local.sh +++ b/CloudComputing_Lab/run/build-local.sh @@ -1,4 +1,4 @@ #antora --fetch /antora/site.yml -antora /antora/site.yml +antora /antora/site-local.yml ifconfig http-server build/site -c-1 diff --git a/CloudComputing_Lab/site-local.yml b/CloudComputing_Lab/site-local.yml new file mode 100644 index 0000000..fe5adf3 --- /dev/null +++ b/CloudComputing_Lab/site-local.yml @@ -0,0 +1,20 @@ +site: + title: Swarmlab CloudComputing_Lab + url: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs + start_page: CloudComputing_Lab::index.adoc +content: + sources: + - url: /antora + branches: master + start_path: CloudComputing_Lab +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 diff --git a/template/README.md b/template/README.md index 8f5dc92..21532f6 100644 --- a/template/README.md +++ b/template/README.md @@ -59,3 +59,6 @@ > ./build.sh > +--- +In order to use a local content repository with Antora, even when using the worktree (i.e., HEAD), the repository must have at least one commit. If you’re not ready to commit other files, simply create an empty .gitignore file and commit it. +--- diff --git a/template/init-docs.sh b/template/init-docs.sh index 65d5855..30a6e8a 100755 --- a/template/init-docs.sh +++ b/template/init-docs.sh @@ -169,6 +169,33 @@ asciidoc: - asciidoctor-plantuml EOF + +cat << EOF > ${dname}/site-local.yml +site: + title: Swarmlab ${SERVICE_NAME} + url: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs + start_page: ${SERVICE_NAME}::index.adoc +content: + sources: + - url: /antora + branches: master + start_path: ${SERVICE_NAME_MENOU} +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 +EOF + +cat << EOF > ${dname}/modules/ROOT/nav.adoc +* xref:index.adoc[${SERVICE_NAV_MENOU}] +EOF cat << EOF > ${dname}/modules/ROOT/nav.adoc * xref:index.adoc[${SERVICE_NAV_MENOU}] EOF diff --git a/template/run/build-local.sh b/template/run/build-local.sh index 602c0cd..22bcf21 100755 --- a/template/run/build-local.sh +++ b/template/run/build-local.sh @@ -1,4 +1,4 @@ #antora --fetch /antora/site.yml -antora /antora/site.yml +antora /antora/site-local.yml ifconfig http-server build/site -c-1