Skip to main content

This component will produce a static HTML export of your Markdown files. The export can be either published to GitLab pages or released as web server container.

See a list of available configuration options.

Usage

  • Create a docusaurus.config.ts and sidebars.ts in folder docs
  • Optionally create a in folder docs
  • Create a multiple Markdown files in folder docs
  • Create GitLab pipeline file .gitlab-ci.yml:
include:
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/common@stable
inputs:
proxy: true
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/workflow@stable
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/semantic-release@stable
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/lint-markdown@stable
- component: $CI_SERVER_FQDN/xrow-public/ci-tools/docusaurus@stable

Inputs

NameDescriptionDefaultType
------------
dependenciesThe dependencies that this job depends on.[]array
docusaurus-versionVersion of Docusaurus to use${DOCUSAURAUS_VERSION}string
export-container-enabledExport to registry containerfalseboolean
nameName of the documentationdocumentationstring
needsThe jobs that this job depends on.[]array
pathPath to markdown filesdocsstring
rulesRules for the build job[{"if":"$CI_PIPELINE_SOURCE == \"schedule\"","when":"never"},{"when":"on_success"}]array
rules-releaseExport to GitLab pages[{"if":"$CI_PIPELINE_SOURCE == \"schedule\"","when":"never"},{"if":"$CI_COMMIT_TAG =~ $CI_PATTERN_SEMVER","when":"on_success"},{"when":"never"}]array
stageThe pipeline stage that the jobs belongs to.buildstring
tagsThe runners that this job depends on.[]array