diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 26cf6a59..fc8dd263 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -1,12 +1,11 @@ import { defineConfig } from "vitepress"; import { rules } from "./rulesForSidebar"; import { description, version } from "../../package.json"; -import { BASE_URL } from "./constants"; // https://vitepress.dev/reference/site-config export default defineConfig({ title: "eslint-plugin-vuejs-a11y", - base: BASE_URL, + base: "/eslint-plugin-vuejs-accessibility/", description, head: [ [ diff --git a/docs/.vitepress/constants.ts b/docs/.vitepress/constants.ts deleted file mode 100644 index 985f157b..00000000 --- a/docs/.vitepress/constants.ts +++ /dev/null @@ -1 +0,0 @@ -export const BASE_URL = "/eslint-plugin-vuejs-accessibility/"; diff --git a/docs/.vitepress/rulesForSidebar.ts b/docs/.vitepress/rulesForSidebar.ts index eb968810..ca78e3ef 100644 --- a/docs/.vitepress/rulesForSidebar.ts +++ b/docs/.vitepress/rulesForSidebar.ts @@ -1,6 +1,5 @@ import { join, parse } from "node:path"; import { Dirent, readdirSync } from "node:fs"; -import { BASE_URL } from "./constants"; export const rules = getRulesForSideBar(); @@ -30,6 +29,6 @@ function fileNameWithoutExtension(file: Dirent) { function ruleToSidebarItem(ruleName: string) { return { text: ruleName, - link: `${BASE_URL}rules/${ruleName}` + link: `/rules/${ruleName}` }; }