publish: override portal doc click events

generated from commit d23a32f88d76fa6740d9017c2b9536169ed2f090