Configuration

Configure Hyperlint

HyperLint offers a variety of configuration options. To customize settings, edit the .hyperlint/config.yaml file within your GitHub repository. Configuration syntax is in YAML format, and options may differ slightly depending on your subscription plan (e.g., Free, Starter, etc.).

Repository Configuration

Configurations are set on per repository basis to ensure that hyperlint behaves as expected.

Configuration are configured by creating a file in the repository at .hyperlint/config.yaml.

See an example in our demo repository repository.

Configuration properties

content_dir

This is the root directory for content files. The default is / and, when you ask for a review, hyperlint will analyze every file in that pull request. If that file is of a supported type. Default: "/".

Examples:

content_dir: /
content_dir: /content
content_dir: /docs

authorized_users

Professional / Enterprise only

This field specifies which users are allowed to trigger Hyperlint. To use it, provide a list of GitHub handles. If you would like any and all users to trigger Hyperlint, add '*' to the list. Default: ['*'].

Examples:

authorized_users:
  - octocat
  - octocat2
authorized_users:
  - '*'
authorized_users:
  - octocat
Professional / Enterprise only

This is the configuration for Link & SEO checks.

enabled (default: true)

This controls whether Link & SEO checks are enabled.

Examples:
link_seo:
  enabled: true
Professional / Enterprise only

Hyperlint can scan your pull requests to identify broken links.

See Link and SEO checking for more details.

The link validation results will be displayed in a GitHub Check on the pull request.

enabled (default: true)

This controls whether link validation is enabled.

link_seo:
  link_validation:
    enabled: true

image_alt_text_seo

Professional / Enterprise only

Hyperlint can SEO optimize the Image Alt attribute text for your image links via Vision Language LLM Models.

See Image Alt Text SEO Optimizations for more details.

The SEO optimized Image Alt text will be displayed in a GitHub Check on the pull request.

enabled (default: false)

This controls whether the Image Alt Text SEO suggestions feature is enabled.

link_seo:
  image_alt_text_seo:
    enabled: true

filename_seo

Professional / Enterprise only

Hyperlint can suggest SEO optimized filenames.

See Filename SEO Optimizations for more details.

The SEO optimized filename suggestions will be displayed in a GitHub Check on the pull request.

enabled (default: true)

This controls whether Filename SEO is enabled.

link_seo:
  filename_seo:
    enabled: true

Example full configuration

Here's a full configuration that you can use as a starting point:

content_dir: /docs
authorized_users:
  - octocat
  - octocat2
link_seo:
  enabled: true
  link_validation:
    enabled: true
  image_alt_text_seo:
    enabled: true
  filename_seo:
    enabled: true