docs(DocsTool): add automated docs generation
This commit is contained in:
parent
1bb8d20b58
commit
195e85e0fe
41
.gitlab-ci.yml
Normal file
41
.gitlab-ci.yml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
stages:
|
||||||
|
- generate-docs
|
||||||
|
|
||||||
|
include:
|
||||||
|
- project: 'gilden/ci/exxcellent-documentation-tool'
|
||||||
|
ref: 'master'
|
||||||
|
file:
|
||||||
|
- 'DocumentationTool.gitlab-ci.yaml'
|
||||||
|
|
||||||
|
.generate-document:
|
||||||
|
extend: .pages-template
|
||||||
|
stage: generate-docs
|
||||||
|
variables:
|
||||||
|
DOCUMENT_ROOT: "documentation"
|
||||||
|
PAGE_PREFIX: "[CI/CD] - [TMPL] - "
|
||||||
|
CREATE_SUB_PAGES: "false"
|
||||||
|
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!</ac:rich-text-body></ac:structured-macro>'
|
||||||
|
FILE_INPUT: "index.html,111183157,gitlab-ci-templates"
|
||||||
|
|
||||||
|
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 ]
|
||||||
Loading…
Reference in New Issue
Block a user