8e34589f25
* docs(web): align the public surface with Blue Stage Carry the TUI's semantic Blue Stage palette into the website, keep Signal Gold on the whale and human-attention accents, and enforce the cross-surface token contract in tests. Route existing Install and Providers topics to their first-party pages and document the loopback-only browser client's real bootstrap and authentication boundaries. Signed-off-by: Hunter B <hmbown@gmail.com> * docs: keep translated READMEs in public-surface parity Mirror the browser-client command and guide link across all six translated READMEs, with the source stamp updated to the exact English README. This restores the repository translation gate without translating or reordering executable commands. Signed-off-by: Hunter B <hmbown@gmail.com> --------- Signed-off-by: Hunter B <hmbown@gmail.com>
10 lines
395 B
TypeScript
10 lines
395 B
TypeScript
import { docTopicHref, type DocTopic } from "./docs-map";
|
|
|
|
/** Return whether a first-party docs topic owns the current website route. */
|
|
export function docsTopicIsCurrent(topic: DocTopic, locale: string, pathname: string): boolean {
|
|
if (!topic.hasPage) return false;
|
|
|
|
const normalized = pathname.split(/[?#]/)[0].replace(/\/+$/, "");
|
|
return normalized === docTopicHref(topic, locale);
|
|
}
|