travis: build document twice to get references correct