Update doc service to work with nested files