Add refine buttons
Now run link check only when publishing doc