(path: string)
| 217 | return segs[segs.length - 1]; |
| 218 | } |
| 219 | function friendlyLabel(path: string): string { |
| 220 | const noExt = path.replace(/\.md$/, ""); |
| 221 | return noExt.startsWith("wiki/") ? noExt.slice(5) : noExt; |
| 222 | } |
| 223 | const clamp = (v: number, lo: number, hi: number) => Math.max(lo, Math.min(hi, v)); |
| 224 | |
| 225 | function mixWhite(hex: string, amount: number): string { |