docs: function fixAndPushPaths (coll, isPkg) {
  				var id, pluginId, data, parts, currCfg, info;
  				for (var name in coll) {
  					data = coll[name];
  					if (isType(data, 'String')) data = {
  						path: coll[name]
  					};
  					// grab the package id, if specified. default to
  					// property name, if missing.
  					data.name = data.name || name;
  					currCfg = newCfg;
  					// check if this is a plugin-specific path
  					parts = pluginParts(removeEndSlash(data.name));
  					id = parts.resourceId;
  					pluginId = parts.pluginId;
  					if (pluginId) {
  						// plugin-specific path
  						currCfg = pluginCfgs[pluginId];
  						if (!currCfg) {
  							currCfg = pluginCfgs[pluginId] = beget(newCfg);
  							currCfg.pathMap = beget(newCfg.pathMap);
  							currCfg.pathList = [];
  						}
  						// remove plugin-specific path from coll
  						delete coll[name];
  					}
  					if (isPkg) {
  						info = normalizePkgDescriptor(data);
  						if (info.config) info.config = beget(newCfg, info.config);
  					}
  					else {
  						info = { path: removeEndSlash(data.path) };
  					}
  					info.specificity = id.split('/').length;
  					if (id) {
  						currCfg.pathMap[id] = info;
  						currCfg.pathList.push(id);
  					}
  					else {
  						// naked plugin name signifies baseUrl for plugin
  						// resources. baseUrl could be relative to global
  						// baseUrl.
  						currCfg.baseUrl = core.resolveUrl(data.path, newCfg);
  					}
  				}
  			}