Only import functionality when not building documentation.