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

Function saveData

src/plugins/search/search.js:77–80  ·  view source on GitHub ↗
(maxAge, expireKey, indexKey)

Source from the content-addressed store, hash-verified

75}
76
77function saveData(maxAge, expireKey, indexKey) {
78 localStorage.setItem(expireKey, Date.now() + maxAge);
79 localStorage.setItem(indexKey, JSON.stringify(INDEXS));
80}
81
82export function genIndex(path, content = '', router, depth) {
83 const tokens = window.marked.lexer(content);

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…