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 10:42:55 +02:00
committed by GitHub
parent 75fd6b0c83
commit ddc0c9dfff
22 changed files with 229 additions and 63 deletions

View File

@@ -0,0 +1,10 @@
export default function isInView(element: Element): boolean {
const rect = element.getBoundingClientRect()
return (
rect.top >= 0 &&
rect.left >= 0 &&
rect.bottom <=
(window.innerHeight || document.documentElement.clientHeight) &&
rect.right <= (window.innerWidth || document.documentElement.clientWidth)
)
}