File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { defineConfig } from "vitepress" ;
2
2
import { rules } from "./rulesForSidebar" ;
3
3
import { description , version } from "../../package.json" ;
4
+ import { BASE_URL } from "./constants" ;
4
5
5
6
// https://vitepress.dev/reference/site-config
6
7
export default defineConfig ( {
7
8
title : "eslint-plugin-vuejs-a11y" ,
8
- base : "/eslint-plugin-vuejs-accessibility/" ,
9
+ base : BASE_URL ,
9
10
description,
10
11
head : [
11
12
[
@@ -66,7 +67,7 @@ export default defineConfig({
66
67
67
68
editLink : {
68
69
pattern :
69
- "https://github.com/vue-a11y/eslint-plugin-vuejs-accessibility/edit/master /docs/:path"
70
+ "https://github.com/vue-a11y/eslint-plugin-vuejs-accessibility/edit/main /docs/:path"
70
71
} ,
71
72
72
73
socialLinks : [
Original file line number Diff line number Diff line change
1
+ export const BASE_URL = "/eslint-plugin-vuejs-accessibility/" ;
Original file line number Diff line number Diff line change 1
1
import { join , parse } from "node:path" ;
2
2
import { Dirent , readdirSync } from "node:fs" ;
3
+ import { BASE_URL } from "./constants" ;
3
4
4
5
export const rules = getRulesForSideBar ( ) ;
5
6
@@ -29,6 +30,6 @@ function fileNameWithoutExtension(file: Dirent) {
29
30
function ruleToSidebarItem ( ruleName : string ) {
30
31
return {
31
32
text : ruleName ,
32
- link : `/ rules/${ ruleName } `
33
+ link : `${ BASE_URL } rules/${ ruleName } `
33
34
} ;
34
35
}
You can’t perform that action at this time.
0 commit comments