If these are only used when building docs, define them inside that if block