Refactor doc render to DocAction