diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index fd74327c..39382999 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1,8 +1,9 @@ -import {readFileSync} from 'fs'; +import { readFileSync } from 'fs'; +import { resolve } from 'path'; import { defineConfig } from 'vitepress'; -import {resolve} from 'path' -const read = (relative) => readFileSync(resolve(process.cwd(), 'docs', '.vitepress', 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 93fd850f..18d6e938 100644 --- a/docs/.vitepress/theme/custom.css +++ b/docs/.vitepress/theme/custom.css @@ -1,8 +1,8 @@ :root { --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-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%); diff --git a/docs/src/guide/request-id.md b/docs/src/guide/request-id.md index 70c31277..5fc4577e 100644 --- a/docs/src/guide/request-id.md +++ b/docs/src/guide/request-id.md @@ -50,8 +50,8 @@ any possible differences between them and share the same cache for both. If the default generator is not enough for your use case, you can provide your own custom generator with the `generateKey` option. -By default, it extracts `method`, `baseURL`, `query`, `params`, `data` and `url` properties from -the request object and hashes it into a number with +By default, it extracts `method`, `baseURL`, `query`, `params`, `data` and `url` +properties from the request object and hashes it into a number with [`object-code`](https://www.npmjs.com/package/object-code). Here's an example of a generator that only uses the `url` and `method` and `custom`