(navItem = this.currentNavItem)
| 267 | } |
| 268 | |
| 269 | getNavPath(navItem = this.currentNavItem) { |
| 270 | const path: INavItem[] = [] |
| 271 | |
| 272 | if (this.nav) { |
| 273 | while (navItem) { |
| 274 | path.unshift(navItem) |
| 275 | const parentId = navItem.parent |
| 276 | if (!parentId) { |
| 277 | navItem = undefined |
| 278 | } else { |
| 279 | const index = this.nav.tocById[parentId]! |
| 280 | navItem = this.nav.getByIndex(parentId, index, this.nav.toc) |
| 281 | } |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | return path |
| 286 | } |
| 287 | |
| 288 | searchInSection(keyword = this.keyword, section = this.section) { |
| 289 | if (!section) return |
no test coverage detected