diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.mts similarity index 98% rename from docs/.vitepress/config.ts rename to docs/.vitepress/config.mts index 7317f31..fd74327 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.mts @@ -1,7 +1,8 @@ -import fs from 'fs'; +import {readFileSync} from 'fs'; import { defineConfig } from 'vitepress'; +import {resolve} from 'path' -const read = (relative) => fs.readFileSync(require.resolve(relative), 'utf-8'); +const read = (relative) => readFileSync(resolve(process.cwd(), 'docs', '.vitepress', relative), 'utf-8'); const isVersion = process.argv.indexOf('--base'); const VERSION = isVersion > -1 ? process.argv[isVersion + 1].slice(1, -1) : 'Latest'; diff --git a/docs/.vitepress/theme/custom.css b/docs/.vitepress/theme/custom.css index c1102a9..93fd850 100644 --- a/docs/.vitepress/theme/custom.css +++ b/docs/.vitepress/theme/custom.css @@ -1,10 +1,14 @@ :root { - --vp-c-brand: hsl(35, 78%, 53%); + --vp-c-brand-1: hsl(35, 78%, 53%); + + --vp-button-brand-bg: hsl(35, 78%, 53%); + --vp-button-brand-active-bg: hsla(35, 78%, 53%, 36.5%); + --vp-button-brand-hover-bg: hsl(35, 78%, 53%); + --vp-c-brand-light: hsla(35, 78%, 53%, 36.5%); --vp-c-brand-lighter: hsla(35, 78%, 53%, 36.5%); --vp-c-brand-dark: hsl(35, 78%, 53%); --vp-c-brand-darker: hsl(35, 78%, 53%); - --vp-c-brand-dimm: #363636; --vp-home-hero-name-color: transparent; --vp-home-hero-name-background: -webkit-linear-gradient(