publish: override portal doc click events

generated from commit 29e3af465512fadde90599cf68cf136e763b3670