fix publish warning and update doc