Browse Source

test template

master
zeus 3 years ago
parent
commit
18b4770ad5
  1. 1
      CloudComputing_Lab/modules/ROOT/pages/index.adoc
  2. 2
      CloudComputing_Lab/run/build-local.sh
  3. 20
      CloudComputing_Lab/site-local.yml
  4. 3
      template/README.md
  5. 27
      template/init-docs.sh
  6. 2
      template/run/build-local.sh

1
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

2
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

20
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

3
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.
---

27
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

2
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

Loading…
Cancel
Save