Updates document configuration.