docs: function (id, parentId, cfg) {
  			var absId, pluginId, parts;
  
  			absId = reduceLeadingDots(id, parentId);
  
  			// if this is still a relative path, it must be a url
  			// so just punt, otherwise...
  			if (isRelUrl(absId)) return absId;
  
  			// plugin id split
  			parts = pluginParts(absId);
  			pluginId = parts.pluginId;
  			absId = pluginId || parts.resourceId;
  
  			// main id expansion
  			if (absId in cfg.pathMap) {
  				absId = cfg.pathMap[absId].main || absId;
  			}
  
  			// plugin id expansion
  			if (pluginId) {
  				if (pluginId.indexOf('/') < 0 && !(pluginId in cfg.pathMap)) {
  					absId = joinPath(cfg.pluginPath, pluginId);
  				}
  				absId = absId + '!' + parts.resourceId;
  			}
  
  			return absId;
  		}