({ index }: Loaded)
| 150 | |
| 151 | /** the section of the page being read, or ArkType's outside the docs */ |
| 152 | const homeSectionOf = ({ index }: Loaded) => { |
| 153 | const path = withoutBase(location.pathname).replace(/\/$/, "") |
| 154 | return index.pages.find(page => page.url === path)?.section ?? 0 |
| 155 | } |
| 156 | |
| 157 | type Hit = { |
| 158 | key: string |
no test coverage detected