MCPcopy
hub / github.com/docsifyjs/docsify / loadNested

Function loadNested

src/core/fetch/index.js:7–20  ·  view source on GitHub ↗
(path, qs, file, next, vm, first)

Source from the content-addressed store, hash-verified

5import { get } from './ajax';
6
7function loadNested(path, qs, file, next, vm, first) {
8 path = first ? path : path.replace(/\/$/, '');
9 path = getParentPath(path);
10
11 if (!path) {
12 return;
13 }
14
15 get(
16 vm.router.getFile(path + file) + qs,
17 false,
18 vm.config.requestHeaders
19 ).then(next, _ => loadNested(path, qs, file, next, vm));
20}
21
22/** @typedef {import('../Docsify').Constructor} Constructor */
23

Callers 2

_loadSideAndNavMethod · 0.85
_fetchMethod · 0.85

Calls 2

getFunction · 0.90
getFileMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…