Improve documentation configuration handling