Document auto-discovery