MCPcopy
hub / github.com/GitbookIO/gitbook / editArticleRef

Function editArticleRef

lib/modifiers/summary/editArticleRef.js:11–15  ·  view source on GitHub ↗

Edit the ref of an article @param {Summary} summary @param {String} level @param {String} newRef @return {Summary}

(summary, level, newRef)

Source from the content-addressed store, hash-verified

9 @return {Summary}
10*/
11function editArticleRef(summary, level, newRef) {
12 return mergeAtLevel(summary, level, {
13 ref: newRef
14 });
15}
16
17module.exports = editArticleRef;

Callers

nothing calls this directly

Calls 1

mergeAtLevelFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…