adds function to get a union's current value
ignores documentation output directory [ci skip]