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

Method _loadSideAndNav

src/core/fetch/index.js:68–82  ·  view source on GitHub ↗
(path, qs, loadSidebar, cb)

Source from the content-addressed store, hash-verified

66
67 return class Fetch extends Base {
68 _loadSideAndNav(path, qs, loadSidebar, cb) {
69 return () => {
70 if (!loadSidebar) {
71 return cb();
72 }
73
74 const fn = result => {
75 this._renderSidebar(result);
76 cb();
77 };
78
79 // Load sidebar
80 loadNested(path, qs, loadSidebar, fn, this, true);
81 };
82 }
83
84 _fetch(cb = noop) {
85 const { query } = this.route;

Callers 3

contentFetchedMethod · 0.95
_fetchFallbackPageMethod · 0.95
_fetch404Method · 0.95

Calls 1

loadNestedFunction · 0.85

Tested by

no test coverage detected