Files
jason5ng32andClaude Fable 5.1 7a608cb8ce Feat(footer): fold the product links into a four-column footer
The Raycast / curl / Lite badges sat in an unlabelled image row of their
own under the Advanced Tools. The footer now has four columns aligned
with that card grid — brand, Project, Docs & Support, Clients — so the
product entries get a heading and show on every route; the curl
commands keep their dialog. Docs links share one locale-aware helper.
The footer never repeats on-page content, and the fixed footer height
in style.css goes, as the columns size themselves.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-20 18:45:09 +08:00

13 lines
547 B
JavaScript

// Builds a docs.ipcheck.ing link: English lives at the section root, every
// other locale under `/<section>/<locale>/`, with `path` appended after that.
const DOCS_ORIGIN = 'https://docs.ipcheck.ing';
const trimSlashes = (value) => String(value ?? '').replace(/^\/+|\/+$/g, '');
export const docsUrl = (section, locale, path = '') => {
const base = `${DOCS_ORIGIN}/${trimSlashes(section)}/`;
const lang = !locale || locale === 'en' ? '' : `${trimSlashes(locale)}/`;
return base + lang + String(path ?? '').replace(/^\/+/, '');
};