Adding a publishing example to the documentation