mirror of
https://github.com/jason5ng32/MyIP.git
synced 2026-11-04 08:55:47 +00:00
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>
13 lines
547 B
JavaScript
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(/^\/+/, '');
|
|
};
|