fix: Workaround docs rendering error

Changing the scope of the macro function appears to help the docs
finish rendering. This is a temporary fix until I decipher what exactly
is going on here.

[ci skip]