MCPcopy Index your code
hub / github.com/docsifyjs/docsify / getAllPaths

Function getAllPaths

src/plugins/search/search.js:36–56  ·  view source on GitHub ↗
(router)

Source from the content-addressed store, hash-verified

34}
35
36function 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
58function getTableData(token) {
59 if (!token.text && token.type === 'table') {

Callers 1

initFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…