allow settings to configure doc expansion