This is occasionally useful when you need different behaviour by pkgdown and regular documentation.
in_pkgdown()