import m from"node:path";import{getNodeAttribute as a,setNodeAttributeValue as f}from"../../../../shared/markdoc.js";import{getLinkOriginalAttrName as p}from"./utils.js";import{resolveLinksFromConfig as v}from"../../nav-utils.js";async function k(o,r,t,{context:s,actions:i}){const e=p(r),n=o[e]||a(o,r);o[e]=n;const l=await v(n,m.dirname(m.resolve(i.contentDir,t)),i,s,{navFile:t});f(o,r,l)}export{k as resolveNavLinks};
