File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11import { defineConfig } from "vitepress" ;
22import { rules } from "./rulesForSidebar" ;
33import { description , version } from "../../package.json" ;
4+ import { BASE_URL } from "./constants" ;
45
56// https://vitepress.dev/reference/site-config
67export default defineConfig ( {
78 title : "eslint-plugin-vuejs-a11y" ,
8- base : "/eslint-plugin-vuejs-accessibility/" ,
9+ base : BASE_URL ,
910 description,
1011 head : [
1112 [
@@ -66,7 +67,7 @@ export default defineConfig({
6667
6768 editLink : {
6869 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"
7071 } ,
7172
7273 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 11import { join , parse } from "node:path" ;
22import { Dirent , readdirSync } from "node:fs" ;
3+ import { BASE_URL } from "./constants" ;
34
45export const rules = getRulesForSideBar ( ) ;
56
@@ -29,6 +30,6 @@ function fileNameWithoutExtension(file: Dirent) {
2930function ruleToSidebarItem ( ruleName : string ) {
3031 return {
3132 text : ruleName ,
32- link : `/ rules/${ ruleName } `
33+ link : `${ BASE_URL } rules/${ ruleName } `
3334 } ;
3435}
You can’t perform that action at this time.
0 commit comments