(page: Page)
| 70 | } |
| 71 | |
| 72 | export function getCurrentPage(page: Page): Page { |
| 73 | // Remove .html |
| 74 | let name = page.name.slice(0, -5); |
| 75 | |
| 76 | // Prepend current build's library |
| 77 | let library = process.env.LIBRARY; |
| 78 | if (library) { |
| 79 | name = `${library}/${name}`; |
| 80 | } |
| 81 | |
| 82 | return { |
| 83 | name, |
| 84 | url: getUrl(name), |
| 85 | exports: page.exports, |
| 86 | tableOfContents: page.tableOfContents |
| 87 | }; |
| 88 | } |
| 89 | |
| 90 | // console.log(await getPages()); |
no test coverage detected