Thanks to visit codestin.com
Credit goes to github.com

Skip to content

HiDeoo/starlight-visual-diff

starlight-visual-diff 🖼️

Compare Starlight documentation pages for visual differences.

Useful when working on large refactors, dependency upgrades, or other changes that should not change the visual appearance of documentation pages.

Getting Started

  1. Clone the repository
  2. Install dependencies:
    pnpm install
  3. Configure the tool in the config.ts file.
    • baseUrl defines the base URLs of the baseline and candidate versions to visually compare. These URLs can be local development servers or deployed environments.
    • paths defines the list of routes to visually compare between the baseline and candidate versions.
  4. Run the visual diff:
    pnpm start

After running the tool, the terminal output will list all routes with visual differences between the baseline and candidate versions. For each route with visual differences, the terminal output includes the path to a diff image.

The following diff image shows visual differences caused by a small heading line-height change. Because the text takes up more vertical space, the layout shifts progressively further down the page.

Visual diff screenshot highlighting layout shifts in a Starlight documentation page

License

Licensed under the MIT License, Copyright © HiDeoo.

See LICENSE for more information.

About

Compare Starlight documentation pages for visual differences

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors