Starlight plugin to validate internal links
MIT License
Bot releases are visible (Hide)
exclude
a list of links from validation - by @HiDeoo (6bc4f)
Published by github-actions[bot] 7 months ago
trailingSlash
option for root pages - by @HiDeoo (c9001)
Published by github-actions[bot] 7 months ago
trailingSlash
option when set to always
or never
- by @HiDeoo (a4562)
Published by github-actions[bot] 8 months ago
Published by github-actions[bot] 9 months ago
Published by github-actions[bot] 9 months ago
public/
directory when using the Astro base
option - by @HiDeoo (c8f58)
Published by github-actions[bot] 10 months ago
base
option - by @HiDeoo (60f31)
Published by github-actions[bot] 10 months ago
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,
}),
],
}),
],
});
trailingSlash
option set to never
- by @HiDeoo (ea412)
Published by github-actions[bot] 12 months ago
Published by github-actions[bot] 12 months ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] over 1 year ago