47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
stages:
|
|
- generate-docs
|
|
|
|
.generate-document:
|
|
image: gitlab.exxcellent.de:4567/gilden/ci/exxcellent-documentation-tool:latest
|
|
stage: generate-docs
|
|
variables:
|
|
DOCUMENT_ROOT: "documentation"
|
|
INPUT_FILE: "document.adoc"
|
|
IMAGES_DIR: images
|
|
OUTPUT_DIR: tmp
|
|
PRINT_TOC: "true"
|
|
CREATE_SUB_PAGES: "false"
|
|
REMOVE_ORPHANS: "true"
|
|
COMPACT_CHAPTER_LABELS: "true"
|
|
PAGE_PREFIX: "[CI/CD] - [TMPL] - "
|
|
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="https://gitlab.exxcellent.de/gilden/ci/exxcellent-documentation-tool">Repository</a>
|
|
.</ac:rich-text-body></ac:structured-macro>'
|
|
FILE_INPUT: "index.html,111183157,gitlab-ci-templates"
|
|
before_script:
|
|
- 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:
|
|
extends: .generate-document
|
|
stage: generate-docs
|
|
variables:
|
|
OUTPUT_DIR: "public"
|
|
script:
|
|
- publish
|
|
artifacts:
|
|
paths: [ public/ ]
|
|
only: [ master ]
|