docs: function(resolver, request, callback){
      if( containsSlash(request.request) ){
        return callback();
      }
      var split = request.request.split('.');
      if( split.length === 1 ) {
        if( ! requestIsModModFile(request) ){
          return resolveModModFile(resolver, request, callback);
        }
      }else{
        // Try treating `.` as a path separator, but in a non-greedy way.
        // There are lots of options here because we allow the file name to be
        // just a prefix.
        // prefer the segments to be directories and prefer the full name to be
        // used.
        var namespaced = [], ns, mod;
        for( var j = 0; j < split.length; j++ ){
          ns = split.slice(0, -j);
          mod = split.slice(-j);
          namespaced.push({
            namespace: ns,
            module: mod.join('.')
          });
        }
        for( var k = 0; k < split.length; k++ ){
          ns = split.slice(0, -k);
          mod = split.slice(-k);
          for( var i = 1; i < mod.length; i++ ){
            namespaced.push({
              namespace: ns,
              module: mod.slice(0, -i).join('.')
            });
          }
        }
        namespaced.shift();
  
        return resolver.forEachBail(namespaced, function(nsmod, cb){
          callback.log("resolve module " + nsmod.module +
                       " in namespace " + JSON.stringify(nsmod.namespace));
          var req = {
            path: request.path,
            request: path.join.apply(path, nsmod.namespace.concat(nsmod.module)),
            query: request.query
          };
          callback.log(JSON.stringify(req));
          return resolver.doResolve("module", req, cb, true);
        }, function(err, resolved){
          if( err || !resolved ){
            return callback(err);
          }
          if( resolved.file ){
            // We're taking this as resolved. It should contain other modules with
            // this prefix
            return resolver.doResolve("result", resolved, callback);
          }
          if(callback.log){
            callback.log(" is not an angular module");
          }
          callback();
        });
      }
      return callback();
    }