(input)
| 69 | const linker: GitBookLinker = { |
| 70 | ...baseContext.linker, |
| 71 | toPathForPage(input) { |
| 72 | if (pages.some((p) => p.page.id === input.page.id)) { |
| 73 | return `#${getPagePDFContainerId(input.page, input.anchor)}`; |
| 74 | } |
| 75 | if (input.page.type === RevisionPageType.Group) { |
| 76 | return '#'; |
| 77 | } |
| 78 | |
| 79 | // Use an absolute URL to the page |
| 80 | return input.page.urls.app; |
| 81 | }, |
| 82 | }; |
| 83 | |
| 84 | const context: GitBookSpaceContext = { |
nothing calls this directly
no test coverage detected