From 47e467fe4ed5be46d4347da5f71b4f2a02a9f255 Mon Sep 17 00:00:00 2001 From: Thibault Brazillier Date: Mon, 10 Jun 2024 13:57:05 +0200 Subject: [PATCH] fix: use relative path for table links --- docs/rule-overview/rule-overview.data.mts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); +}