Change the publish button to replace itself with a link to the flattened document.

This provides a UI surface to publish things like the section index at the same time.