--- trunk/docs/utils/utils.ts 2024/08/30 10:10:56 625 +++ 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}`;