--- trunk/docs/utils/utils.ts 2024/07/29 17:59:26 575 +++ trunk/docs/utils/utils.ts 2024/09/07 09:38:45 626 @@ -1,4 +1,8 @@ +import { BASE_URL } from "./links"; + export const toTitleCase = (s: string) => s .replace(/^[-_]*(.)/, (_, c) => c.toUpperCase()) .replace(/[-_]+(.)/g, (_, c) => " " + c.toUpperCase()); + +export const absoluteURL = (url: string) => `${BASE_URL}${url}`;