Skip to content

Commit

Permalink
fix: use relative path for table links (#1135)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thyumo committed Jul 23, 2024
1 parent b6c74e5 commit 2c8a293
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/rule-overview/rule-overview.data.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}));
}
Expand All @@ -32,3 +32,7 @@ function getRecommendedRules() {
function removeRulePrefix(ruleName: string) {
return ruleName.replace("vuejs-accessibility/", "");
}

function formatRuleLink(ruleLink: string) {
return "..".concat(ruleLink);
}

0 comments on commit 2c8a293

Please sign in to comment.