Support both ddoc and seperate doc settings