docs: add anchor link to reference parameters (#6194)

- Added anchor links to items in parameter components
- Added sectionTitle prop in markdown theme

Note: Due to the second point, the change requires generating references to see the anchor links, which would result in a big diff in this PR. Instead, next time the references are generated for a release, this feature will available for use.
This commit is contained in:
Shahed Nasser
2024-01-24 08:42:55 +00:00
committed by GitHub
parent 75fd6b0c83
commit ddc0c9dfff
22 changed files with 229 additions and 63 deletions
@@ -11,6 +11,7 @@ export type DetailsSummaryProps = {
className?: string
titleClassName?: string
hideExpandableIcon?: boolean
summaryRef?: React.LegacyRef<HTMLDivElement>
} & Omit<React.HTMLAttributes<HTMLElement>, "title">
export const DetailsSummary = ({
@@ -23,6 +24,7 @@ export const DetailsSummary = ({
className,
titleClassName,
hideExpandableIcon = false,
summaryRef,
...rest
}: DetailsSummaryProps) => {
return (
@@ -36,6 +38,7 @@ export const DetailsSummary = ({
"no-marker",
className
)}
ref={summaryRef}
{...rest}
>
<span className="gap-docs_0.25 flex flex-col">