Doc build fixes

Fixes some errors during doc build. This may be causing the missing example in the dev build, please merge.