diff --git a/docs/rule-overview/rule-overview.data.mts b/docs/rule-overview/rule-overview.data.mts index 857bcad9..172a93be 100644 --- a/docs/rule-overview/rule-overview.data.mts +++ b/docs/rule-overview/rule-overview.data.mts @@ -16,7 +16,7 @@ export default defineLoader({ const recommended = getRecommendedRules(); return rules.map((rule) => ({ name: rule.text, - link: rule.link, + link: formatRuleLink(rule.link), recommended: recommended.includes(rule.text) })); } @@ -32,3 +32,7 @@ function getRecommendedRules() { function removeRulePrefix(ruleName: string) { return ruleName.replace("vuejs-accessibility/", ""); } + +function formatRuleLink(ruleLink: string) { + return "..".concat(ruleLink); +}