EkLine Bitbucket integration guide
Set up the EkLine integration with Bitbucket to review documentation in your pipelines.
Prerequisites
Section titled “Prerequisites”- You have an EkLine integration token. You can obtain this from Settings > Organization > Access in the EkLine dashboard.
- You have a Bitbucket account and the necessary permissions to configure pipelines.
Create bitbucket-pipelines.yml file
Section titled “Create bitbucket-pipelines.yml file”Create a new file named bitbucket-pipelines.yml in your project’s root directory and add the following content:
runEkLineStep: &runEkLineStep name: EkLine Documentation Review image: name: ghcr.io/ekline-io/ekline-ci-cd:v6.8 script: - export INPUT_EK_TOKEN=$EK_TOKEN - export INPUT_CONTENT_DIR='<path_to_content_directory>' # Uncomment and configure the following lines to use additional options: # - export INPUT_EXCLUDE_DIRECTORIES='<dir_to_exclude>' # - export INPUT_EXCLUDE_FILES='<file_to_exclude.md>' - /entrypoint.sh
pipelines: branches: main: - step: *runEkLineStep
pull-requests: '**': - step: *runEkLineStepReplace <path_to_content_directory> with the actual path to your content directory.
Configure Bitbucket environment variables
Section titled “Configure Bitbucket environment variables”- In Bitbucket, navigate to your repository settings.
- Go to Repository settings > Pipelines > Repository variables.
- Add the following variables:
EK_TOKEN: Your EkLine integration token.
Configure input options
Section titled “Configure input options”Ignoring specific rules (optional)
Section titled “Ignoring specific rules (optional)”To ignore specific rules during the review process, you can use the INPUT_IGNORE_RULE flag. This flag accepts a comma-separated list of rule identifiers that you want to skip.
For example, to ignore rules EK00001 and EK00004, you can set the INPUT_IGNORE_RULE flag in your configuration like this:
INPUT_IGNORE_RULE: "EK00001,EK00004"Next steps
Section titled “Next steps”- Ignoring rules — handle false positives and suppress specific checks
- Framework support — configure EkLine for MDX, Astro, Docusaurus, and other frameworks
- GitHub Actions integration — set up EkLine in GitHub if you also use GitHub
- Docs Agent — generate and update documentation from your codebase with AI