Merge branch 'feat/doctool_additions' into 'master'

feat(Docker-Compose): Add Validity Template and Pages Template to Documentation

See merge request gilden/ci/gitlab-ci-templates!20
This commit is contained in:
Wolfram Gulde 2021-08-12 12:07:06 +00:00
commit 17d7b423e8
2 changed files with 37 additions and 43 deletions

View File

@ -4,10 +4,8 @@ stages:
- release - release
include: include:
- project: 'gilden/ci/gitlab-ci-templates' - local: 'release-template.gitlab-ci.yml'
ref: 'master' - local: 'tool-documentation.gitlab-ci.yml'
file:
- 'release-template.gitlab-ci.yml'
Test-Java-Backend: Test-Java-Backend:
stage: test stage: test
@ -19,57 +17,37 @@ Test-Java-Backend:
project: gilden/ci/java-backend-template project: gilden/ci/java-backend-template
strategy: depend strategy: depend
.generate-document: check_confluence_validity:
image: gitlab.exxcellent.de:4567/gilden/ci/exxcellent-documentation-tool:latest
stage: generate-docs
variables: variables:
DOCUMENT_ROOT: "documentation" DOCUMENT_ROOT: "documentation"
INPUT_FILE: "document.adoc" INPUT_FILE: "document.adoc"
IMAGES_DIR: images IMAGES_DIR: images
OUTPUT_DIR: tmp
PRINT_TOC: "true"
CREATE_SUB_PAGES: "false" CREATE_SUB_PAGES: "false"
REMOVE_ORPHANS: "true"
COMPACT_CHAPTER_LABELS: "true"
PAGE_PREFIX: "[CI/CD] - [TMPL] - " PAGE_PREFIX: "[CI/CD] - [TMPL] - "
CONFLUENCE_SPACE: RANDI CONFLUENCE_SPACE: RANDI
REV_NUMBER: $CI_COMMIT_SHORT_SHA
TEXT_GENERATED_HINT: '<ac:structured-macro ac:name="warning"><ac:parameter ac:name="title" /><ac:rich-text-body>This is a generated page, do not edit! All changes must happen in the <a href="${CI_PROJECT_URL}">Repository</a> TEXT_GENERATED_HINT: '<ac:structured-macro ac:name="warning"><ac:parameter ac:name="title" /><ac:rich-text-body>This is a generated page, do not edit! All changes must happen in the <a href="${CI_PROJECT_URL}">Repository</a>
.</ac:rich-text-body></ac:structured-macro>' .</ac:rich-text-body></ac:structured-macro>'
FILE_INPUT: "index.html,111183157,gitlab-ci-templates" FILE_INPUT: "index.html,111183157,gitlab-ci-templates"
before_script: extends: .check_confluence_validity-template
- generate --type html
- generate --type pdf
check_confluence_validity:
extends: .generate-document
stage: generate-docs
variables:
OUTPUT_DIR: "merge_requests"
script:
- check-validity
artifacts:
paths: [ merge_requests/ ]
only: [ merge_requests ]
pages: pages:
extends: .generate-document
stage: generate-docs
variables: variables:
OUTPUT_DIR: "public" DOCUMENT_ROOT: "documentation"
script: INPUT_FILE: "document.adoc"
- publish IMAGES_DIR: images
artifacts: CREATE_SUB_PAGES: "false"
paths: [ public/ ] PAGE_PREFIX: "[CI/CD] - [TMPL] - "
only: [ master ] CONFLUENCE_SPACE: RANDI
TEXT_GENERATED_HINT: '<ac:structured-macro ac:name="warning"><ac:parameter ac:name="title" /><ac:rich-text-body>This is a generated page, do not edit! All changes must happen in the <a href="${CI_PROJECT_URL}">Repository</a>
.</ac:rich-text-body></ac:structured-macro>'
FILE_INPUT: "index.html,111183157,gitlab-ci-templates"
extends: .pages-template
.release-template: .release-template:
trigger: trigger:
include: pipelines/update-version-pipeline.gitlab-ci.yml include: pipelines/update-version-pipeline.gitlab-ci.yml
strategy: depend strategy: depend
a.major-release: a.major-release:
extends: .release-template extends: .release-template
variables: variables:
@ -94,4 +72,3 @@ e.build-release:
extends: .release-template extends: .release-template
variables: variables:
BUMP_VERSION: "build" BUMP_VERSION: "build"

View File

@ -1,4 +1,4 @@
.pages-template: .documentation-tool-template:
image: gitlab.exxcellent.de:4567/gilden/ci/exxcellent-documentation-tool:latest image: gitlab.exxcellent.de:4567/gilden/ci/exxcellent-documentation-tool:latest
variables: variables:
DOCUMENT_ROOT: . DOCUMENT_ROOT: .
@ -15,13 +15,30 @@
COMPACT_CHAPTER_LABELS: "true" COMPACT_CHAPTER_LABELS: "true"
PAGE_PREFIX: "" PAGE_PREFIX: ""
PAGE_SUFFIX: "" PAGE_SUFFIX: ""
before_script: [ ] before_script:
script:
- generate --type html - generate --type html
- generate --type pdf - generate --type pdf
.check_confluence_validity-template:
extends: .documentation-tool-template
stage: generate-docs
variables:
OUTPUT_DIR: merge_requests
script:
- check-validity
artifacts:
paths: [ merge_requests/ ]
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
.pages-template:
extends: .documentation-tool-template
stage: generate-docs
variables:
OUTPUT_DIR: public
script:
- publish - publish
artifacts: artifacts:
paths: [ public/ ] paths: [ public/ ]
rules: rules:
- when: manual - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH