| 34 | } |
| 35 | |
| 36 | function getAllPaths(router) { |
| 37 | const paths = []; |
| 38 | |
| 39 | Docsify.dom |
| 40 | .findAll('.sidebar-nav a:not(.section-link):not([data-nosearch])') |
| 41 | .forEach(node => { |
| 42 | const href = node.href; |
| 43 | const originHref = node.getAttribute('href'); |
| 44 | const path = router.parse(href).path; |
| 45 | |
| 46 | if ( |
| 47 | path && |
| 48 | paths.indexOf(path) === -1 && |
| 49 | !Docsify.util.isAbsolutePath(originHref) |
| 50 | ) { |
| 51 | paths.push(path); |
| 52 | } |
| 53 | }); |
| 54 | |
| 55 | return paths; |
| 56 | } |
| 57 | |
| 58 | function getTableData(token) { |
| 59 | if (!token.text && token.type === 'table') { |