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:
10
www/apps/docs/src/utils/is-in-view.ts
Normal file
10
www/apps/docs/src/utils/is-in-view.ts
Normal 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)
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user