Fixed the doc viewer and reworked the build option snippets so they work with the new targets