Move the printing logic from the `print_profile_docs` macro
Move the printing logic from the
print_profile_docsmacro