Loading docs/jobs/build/apidoc.md +8 −2 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ code using [apiDoc](https://www.apidocjs.com/). ## Job details * Job name: `documentation` * Job name: `apidoc` * Docker image: [`node`](https://hub.docker.com/r/_/node) * Default stage: `build` Loading @@ -37,7 +37,7 @@ code using [apiDoc](https://www.apidocjs.com/). | ---- | ----------- | ------- | | `APIDOC_VERSION` | Version of apiDoc to use | `0.24.0` | | `APIDOC_CONFIG_PATH` | Path to config file or to directory containing config file (apidoc.json or apidoc.config.js) | `.` | | `APIDOC_OUTPUT_PATH` | Output directory path | `/apidoc_build` | | `APIDOC_OUTPUT_PATH` | Output directory path | `/documentation_build` | | `APIDOC_TEMPLATE_PATH` | Path to template folder | `/usr/lib/node_modules/apidoc/template/` | ### Artifacts Loading @@ -46,6 +46,12 @@ Result of documentation build is [exposed as](https://docs.gitlab.com/ee/ci/yaml/#artifactsexpose_as) `apiDoc build` in merge requests. !!! warning Exposition of artifact doesn't work currently because of [this issue from Gitlab](https://gitlab.com/gitlab-org/gitlab/-/issues/37129). As soon as the issue will be fixed, exposed artifacts will be available in merge requests. ## Versions * **Latest** (current -> `2020-08-07_1`) : `https://jobs.go2scale.io/latest/apidoc.yml` Loading docs/jobs/build/mkdocs.md +13 −1 Original line number Diff line number Diff line Loading @@ -33,18 +33,30 @@ Mkdocs](https://squidfunk.github.io/mkdocs-material/) are ready to use. ## Job details * Job name: `documentation` * Job name: `mkdocs` * Docker image: [`squidfunk/mkdocs-material`](https://hub.docker.com/r/squidfunk/mkdocs-material) * Default stage: `build` * When: `always` ### Variables | Name | Description | Default | | ---- | ----------- | ------- | | `MKDOCS_OUTPUT_PATH` | Output directory path | `/ documentation_build` | ### Artifacts Result of documentation build is [exposed as](https://docs.gitlab.com/ee/ci/yaml/#artifactsexpose_as) `Documentation` in merge requests !!! warning Exposition of artifact doesn't work currently because of [this issue from Gitlab](https://gitlab.com/gitlab-org/gitlab/-/issues/37129). As soon as the issue will be fixed, exposed artifacts will be available in merge requests. ## Versions * **Latest** (current -> `2020-08-05_1`) : `https://jobs.go2scale.io/latest/mkdocs.yml` Loading docs/jobs/deployment/pages.md +11 −4 Original line number Diff line number Diff line Loading @@ -8,8 +8,16 @@ from previous job named `documentation`. ## How to use it !!! note "Requirements" * Use a `documentation` job in build 📦 stage to be able to retrieve the documentation to publish as artifact. Example: [Mkdocs](/jobs/mkdocs/) You have to use a job which build your documentation in a previous stage. We recommend you to use a documentation job available on the HUB in [build 📦 stage](/jobs/#build). They build documentation and publish it as artifact in `documentation_build/` folder. **Documentation jobs list:** * [ApiDoc](/jobs/build/apidoc/) * [Mkdocs](/jobs/build/mkdocs/) 1. Choose a version in [version list](#versions) 3. Add the corresponding URL to your `.gitlab-ci.yml` file (see [Getting Loading @@ -22,7 +30,6 @@ from previous job named `documentation`. 4. If you need to customize the job (stage, variables, ...) 👉 check the [jobs customization](/getting-started/#jobs-customization) 5. Well done, your job is ready to work ! 😀 Loading @@ -35,7 +42,7 @@ from previous job named `documentation`. | Name | Description | Default | | ---- | ----------- | ------- | | `PAGES_BUILD_PATH` | Path to folder which contains documentation build | | | `PAGES_BUILD_PATH` | Path to folder which contains documentation build | `documentation_build/` | ## Versions Loading jobs/apidoc/apidoc.yml +2 −2 Original line number Diff line number Diff line # Job from go2scale hub --> hub.go2scale.io documentation: apidoc: image: name: node:12.18.3-alpine3.12 entrypoint: [""] stage: build variables: APIDOC_CONFIG_PATH: '.' APIDOC_OUTPUT_PATH: 'apidoc_build/' APIDOC_OUTPUT_PATH: 'documentation_build/' APIDOC_TEMPLATE_PATH: '/usr/local/lib/node_modules/apidoc/template/' APIDOC_VERSION: '0.24.0' script: Loading jobs/mkdocs/mkdocs.yml +6 −4 Original line number Diff line number Diff line # Job from go2scale hub --> hub.go2scale.io documentation: mkdocs: image: name: squidfunk/mkdocs-material:5.2.2 entrypoint: [""] stage: build variables: MKDOCS_OUTPUT_PATH: 'documentation_build/' script: - mkdocs build -d ./public - mkdocs build -d "$MKDOCS_OUTPUT_PATH" artifacts: when: always expose_as: "Documentation" expose_as: "Mkdocs build" paths: - public/ - "$MKDOCS_OUTPUT_PATH" Loading
docs/jobs/build/apidoc.md +8 −2 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ code using [apiDoc](https://www.apidocjs.com/). ## Job details * Job name: `documentation` * Job name: `apidoc` * Docker image: [`node`](https://hub.docker.com/r/_/node) * Default stage: `build` Loading @@ -37,7 +37,7 @@ code using [apiDoc](https://www.apidocjs.com/). | ---- | ----------- | ------- | | `APIDOC_VERSION` | Version of apiDoc to use | `0.24.0` | | `APIDOC_CONFIG_PATH` | Path to config file or to directory containing config file (apidoc.json or apidoc.config.js) | `.` | | `APIDOC_OUTPUT_PATH` | Output directory path | `/apidoc_build` | | `APIDOC_OUTPUT_PATH` | Output directory path | `/documentation_build` | | `APIDOC_TEMPLATE_PATH` | Path to template folder | `/usr/lib/node_modules/apidoc/template/` | ### Artifacts Loading @@ -46,6 +46,12 @@ Result of documentation build is [exposed as](https://docs.gitlab.com/ee/ci/yaml/#artifactsexpose_as) `apiDoc build` in merge requests. !!! warning Exposition of artifact doesn't work currently because of [this issue from Gitlab](https://gitlab.com/gitlab-org/gitlab/-/issues/37129). As soon as the issue will be fixed, exposed artifacts will be available in merge requests. ## Versions * **Latest** (current -> `2020-08-07_1`) : `https://jobs.go2scale.io/latest/apidoc.yml` Loading
docs/jobs/build/mkdocs.md +13 −1 Original line number Diff line number Diff line Loading @@ -33,18 +33,30 @@ Mkdocs](https://squidfunk.github.io/mkdocs-material/) are ready to use. ## Job details * Job name: `documentation` * Job name: `mkdocs` * Docker image: [`squidfunk/mkdocs-material`](https://hub.docker.com/r/squidfunk/mkdocs-material) * Default stage: `build` * When: `always` ### Variables | Name | Description | Default | | ---- | ----------- | ------- | | `MKDOCS_OUTPUT_PATH` | Output directory path | `/ documentation_build` | ### Artifacts Result of documentation build is [exposed as](https://docs.gitlab.com/ee/ci/yaml/#artifactsexpose_as) `Documentation` in merge requests !!! warning Exposition of artifact doesn't work currently because of [this issue from Gitlab](https://gitlab.com/gitlab-org/gitlab/-/issues/37129). As soon as the issue will be fixed, exposed artifacts will be available in merge requests. ## Versions * **Latest** (current -> `2020-08-05_1`) : `https://jobs.go2scale.io/latest/mkdocs.yml` Loading
docs/jobs/deployment/pages.md +11 −4 Original line number Diff line number Diff line Loading @@ -8,8 +8,16 @@ from previous job named `documentation`. ## How to use it !!! note "Requirements" * Use a `documentation` job in build 📦 stage to be able to retrieve the documentation to publish as artifact. Example: [Mkdocs](/jobs/mkdocs/) You have to use a job which build your documentation in a previous stage. We recommend you to use a documentation job available on the HUB in [build 📦 stage](/jobs/#build). They build documentation and publish it as artifact in `documentation_build/` folder. **Documentation jobs list:** * [ApiDoc](/jobs/build/apidoc/) * [Mkdocs](/jobs/build/mkdocs/) 1. Choose a version in [version list](#versions) 3. Add the corresponding URL to your `.gitlab-ci.yml` file (see [Getting Loading @@ -22,7 +30,6 @@ from previous job named `documentation`. 4. If you need to customize the job (stage, variables, ...) 👉 check the [jobs customization](/getting-started/#jobs-customization) 5. Well done, your job is ready to work ! 😀 Loading @@ -35,7 +42,7 @@ from previous job named `documentation`. | Name | Description | Default | | ---- | ----------- | ------- | | `PAGES_BUILD_PATH` | Path to folder which contains documentation build | | | `PAGES_BUILD_PATH` | Path to folder which contains documentation build | `documentation_build/` | ## Versions Loading
jobs/apidoc/apidoc.yml +2 −2 Original line number Diff line number Diff line # Job from go2scale hub --> hub.go2scale.io documentation: apidoc: image: name: node:12.18.3-alpine3.12 entrypoint: [""] stage: build variables: APIDOC_CONFIG_PATH: '.' APIDOC_OUTPUT_PATH: 'apidoc_build/' APIDOC_OUTPUT_PATH: 'documentation_build/' APIDOC_TEMPLATE_PATH: '/usr/local/lib/node_modules/apidoc/template/' APIDOC_VERSION: '0.24.0' script: Loading
jobs/mkdocs/mkdocs.yml +6 −4 Original line number Diff line number Diff line # Job from go2scale hub --> hub.go2scale.io documentation: mkdocs: image: name: squidfunk/mkdocs-material:5.2.2 entrypoint: [""] stage: build variables: MKDOCS_OUTPUT_PATH: 'documentation_build/' script: - mkdocs build -d ./public - mkdocs build -d "$MKDOCS_OUTPUT_PATH" artifacts: when: always expose_as: "Documentation" expose_as: "Mkdocs build" paths: - public/ - "$MKDOCS_OUTPUT_PATH"