Fix generation of reference docs [skip ci]