Skip to content
Myr

head.ts

This file

Path

apps/web/src/features/docs/head.ts

22 lines · 776 bytes · TypeScript

Last changed by

Merge build/comments-web-features into mainoscabrielbefore adoption74bfc72

History of this file

Take it

Merge build/1313-docs into mainoscabrielbefore adoption9000f4e

line 1why, one step back
1/**

Merge build/comments-web-features into mainoscabrielbefore adoption74bfc72

lines 2–3why, one step back
2 * Kept apart from the view: a route's `head` runs before its page's view loads,
3 * so the Markdown renderer stays off every page's first load.

Merge build/1313-docs into mainoscabrielbefore adoption9000f4e

lines 4–19why, one step back
4 */
5import type { DocEntry } from "@repo/agent-kit/docs/entries";67import { markdownAlternateLink } from "../front/markdown.ts";8import { pageHead } from "../shared/head.ts";9import { docsPath } from "../shared/paths.ts";1011export const docsMarkdownPath = (slug: string) => `${docsPath(slug)}.md`;1213export const docsHead = (page: DocEntry) => ({14 ...pageHead({ description: page.summary, title: page.title }),15 links: [markdownAlternateLink(docsMarkdownPath(page.slug))],16});1718export const docsIndexHead = () =>19 pageHead({

Merge build/1312-home into mainoscabrielbefore adoption2232fc4

line 20why, one step back
20 description: "Guides, and a reference read from the platform's schema.",

Merge build/1313-docs into mainoscabrielbefore adoption9000f4e

lines 21–22why, one step back
21 title: "Docs",
22 });