starlight-links-validator

Starlight plugin to validate internal links

MIT License

Downloads
31.7K
Stars
33
Committers
4

Bot releases are visible (Hide)

starlight-links-validator - v0.8.0 Latest Release

Published by github-actions[bot] 6 months ago

   🚀 Features

  • Adds a new option to exclude a list of links from validation  -  by @HiDeoo (6bc4f)
    View changes on GitHub
starlight-links-validator - v0.7.1

Published by github-actions[bot] 7 months ago

   🐞 Bug Fixes

  • Fixes validation issue with the Astro trailingSlash option for root pages  -  by @HiDeoo (c9001)
    View changes on GitHub
starlight-links-validator - v0.7.0

Published by github-actions[bot] 7 months ago

   🚀 Features

  • Validates that links respects the Astro trailingSlash option when set to always or never  -  by @HiDeoo (a4562)
    View changes on GitHub
starlight-links-validator - v0.6.0

Published by github-actions[bot] 8 months ago

   🚀 Features

  • Adds support for validating links to pages using a custom slug  -  by @HiDeoo (5f011)
    View changes on GitHub
starlight-links-validator - v0.5.3

Published by github-actions[bot] 9 months ago

   🐞 Bug Fixes

  • Improves relative link detection  -  by @HiDeoo (43e89)
    View changes on GitHub
starlight-links-validator - v0.5.2

Published by github-actions[bot] 9 months ago

   🐞 Bug Fixes

    View changes on GitHub
starlight-links-validator - v0.5.1

Published by github-actions[bot] 10 months ago

   🐞 Bug Fixes

  • Fixes validation issues when using the Astro base option  -  by @HiDeoo (60f31)
    View changes on GitHub
starlight-links-validator - v0.5.0

Published by github-actions[bot] 10 months ago

   🚨 Breaking Changes

  • Bump minimum required Astro version to 4.0 and Starlight to 0.15.0  -  by @HiDeoo (5a45a)

  • Starlight Links Validator is now a Starlight plugin  -  by @HiDeoo (1d8ff)

    You will need to update your Astro configuration to remove the previous version integration and add the new version as a Starlight plugin in your astro.config.mjs file:

    import starlight from "@astrojs/starlight";
    import { defineConfig } from "astro/config";
    import starlightLinksValidator from "starlight-links-validator";
    
    export default defineConfig({
      // …
      integrations: [
    -   starlightLinksValidator(),
        starlight({
    +     plugins: [starlightLinksValidator()],
          title: "My Docs",
        }),
      ],
    });
    
  • Add errors for relative internal links  -  by @HiDeoo (af185)

    In previous versions, relative internal links were ignored. They are now considered as invalid links and will be reported as such.
    If you want to preserve the previous behaviour, you can set the errorOnRelativeLinks to false in your astro.config.mjs file:

    export default defineConfig({
      integrations: [
        starlight({
          plugins: [
            starlightLinksValidator({
              errorOnRelativeLinks: false,
            }),
          ],
        }),
      ],
    });
    

   🚀 Features

  • Update plugin output to closely match the output of Astro v4  -  by @HiDeoo (99f40)
  • Add a new option to not error on fallback page links  -  by @HiDeoo (cfc3b)
  • Add a new option to error on inconsistent locale links  -  by @HiDeoo (c397c)
  • Improve link validation output readability  -  by @HiDeoo (f5900)

   🐞 Bug Fixes

  • Prevent validation issues when using the trailingSlash option set to never  -  by @HiDeoo (ea412)
    View changes on GitHub
starlight-links-validator - v0.4.2

Published by github-actions[bot] 12 months ago

   🐞 Bug Fixes

    View changes on GitHub
starlight-links-validator - v0.4.1

Published by github-actions[bot] 12 months ago

   🐞 Bug Fixes

  • Account for multiple headings with the same text  -  by @delucis and @HiDeoo (9ad6b)
    View changes on GitHub
starlight-links-validator - v0.4.0

Published by github-actions[bot] about 1 year ago

   🚨 Breaking Changes

  • Bump minimum required Astro version to 3.0 and Starlight to 0.9.0  -  by @HiDeoo (00f95)

   🚀 Features

  • Improve error reporting  -  by @HiDeoo (9679c)
    View changes on GitHub
starlight-links-validator - v0.3.0

Published by github-actions[bot] about 1 year ago

   🚀 Features

  • Add support for validating emitted file assets  -  by @HiDeoo (675dd)
    View changes on GitHub
starlight-links-validator - v0.2.0

Published by github-actions[bot] about 1 year ago

   🚨 Breaking Changes

  • Stop dual transpiling to ESM and CJS and ship TypeScript  -  by @HiDeoo (cc14a)

   🐞 Bug Fixes

  • Fixes various issues with IDs and links with HTML embedded in Markdown  -  by @HiDeoo (889c7)
  • Prevent invalid validation issues in files with a path containing special characters  -  by @HiDeoo (4b6f6)
    View changes on GitHub
starlight-links-validator - v0.1.1

Published by github-actions[bot] over 1 year ago

   🚀 Features

  • Initial public release.