docs: close unified ingest public docs gaps

This commit is contained in:
Andrey Avtomonov 2026-05-13 19:38:05 +02:00
parent 7309fbde94
commit 644bf58c37
10 changed files with 50 additions and 14 deletions

View file

@ -1,18 +1,16 @@
"use client";
import {
type ComponentPropsWithoutRef,
type ReactNode,
type ReactElement,
isValidElement,
} from "react";
import { CopyButton } from "./copy-button";
type Props = {
children?: ReactNode;
className?: string;
type Props = ComponentPropsWithoutRef<"pre"> & {
title?: string;
// rehype-pretty-code adds data attributes such as data-language; capture them via index signature
[key: string]: unknown;
"data-language"?: string;
};
const TERMINAL_LANGS = new Set(["bash", "sh", "shell", "zsh"]);